1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/config/schemas/objectTemplate.json

46 lines
1.3 KiB
JSON
Raw Normal View History

{
2023-05-19 20:14:01 +02:00
"type" : "object",
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "VCMI map object template format",
"description" : "Description of map object tempate that describes appearence of object instance",
2023-05-19 20:14:01 +02:00
"required" : [ "animation", "mask" ],
"additionalProperties" : false,
2023-05-19 20:14:01 +02:00
"properties" : {
"animation" : {
"type" : "string",
2023-05-19 20:14:01 +02:00
"description" : "Path to def file with animation of this object",
"format" : "animationFile"
},
2023-05-19 20:14:01 +02:00
"editorAnimation" : {
"type" : "string",
2023-05-19 20:14:01 +02:00
"description" : "Optional path to def file with animation of this object to use in map editor",
"format" : "animationFile"
},
2023-05-19 20:14:01 +02:00
"visitableFrom" : {
"type" : "array",
"description" : "Directions from which hero can visit this object",
"minItems" : 3,
"maxItems" : 3,
2023-05-19 20:14:01 +02:00
"items" : {
"type" : "string",
"minLength" : 3,
"maxLength" : 3
}
},
"mask" : {
2023-05-19 20:14:01 +02:00
"type" : "array",
"items" : { "type" : "string" },
"description" : "Object mask that describes on which tiles object is visible/blocked/activatable"
},
"zIndex" : {
2023-05-19 20:14:01 +02:00
"type" : "number",
"description" : "Defines order in which objects on same tile will be blit."
},
"allowedTerrains" : {
2023-05-19 20:14:01 +02:00
"type" : "array",
"items" : { "type" : "string" },
"description" : "List of terrain on which this object can be placed"
}
}
}