mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
1cec8d4cfc
configurable objects support: - fixes for object template loader - schema for current object template format
47 lines
1.2 KiB
JSON
47 lines
1.2 KiB
JSON
{
|
|
"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",
|
|
"required": ["basebase", "base", "animation", "mask" ],
|
|
|
|
"additionalProperties" : false,
|
|
"properties":{
|
|
"basebase": {
|
|
"type" : "number",
|
|
"description": "Base object type, e.g. town or hero"
|
|
},
|
|
"base": {
|
|
"type" : "number",
|
|
"description": "Object subtype, e.g. Castle, Rampart, Cleric, Demon"
|
|
},
|
|
"animation": {
|
|
"type" : "string",
|
|
"description": "Path to def file with animation of this object",
|
|
"format" : "defFile"
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|