2014-03-23 23:26:18 +03: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",
|
2014-06-03 21:43:33 +03:00
|
|
|
"required": [ "animation", "mask" ],
|
2014-03-23 23:26:18 +03:00
|
|
|
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"properties":{
|
|
|
|
"animation": {
|
|
|
|
"type" : "string",
|
|
|
|
"description": "Path to def file with animation of this object",
|
|
|
|
"format" : "defFile"
|
|
|
|
},
|
2015-06-10 13:16:15 +02:00
|
|
|
"editorAnimation":{
|
|
|
|
"type" : "string",
|
|
|
|
"description": "Optional path to def file with animation of this object to use in map editor",
|
|
|
|
"format" : "defFile"
|
|
|
|
},
|
2014-03-23 23:26:18 +03:00
|
|
|
"visitableFrom": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "Directions from which this object is visible",
|
|
|
|
"minItems" : 3,
|
|
|
|
"maxItems" : 3,
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"maxLength" : 3,
|
|
|
|
"minLength" : 3
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"allowedTerrains" : {
|
|
|
|
"type":"array",
|
|
|
|
"items": { "type": "string" },
|
|
|
|
"description": "List of terrain on which this object can be placed"
|
|
|
|
},
|
|
|
|
"mask" : {
|
|
|
|
"type":"array",
|
|
|
|
"items": { "type": "string" },
|
|
|
|
"description": "Object mask that describes on which tiles object is visible/blocked/activatable"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|