2022-09-15 10:06:54 +02:00
|
|
|
{
|
|
|
|
"type":"object",
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema",
|
|
|
|
"title" : "VCMI obstacle format",
|
|
|
|
"description" : "Format used to define new obstacles in VCMI",
|
|
|
|
"required" : [ "animation" ],
|
|
|
|
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"properties":{
|
|
|
|
"allowedTerrains": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "Obstacles can be place on specified terrains only",
|
|
|
|
"items": { "type" : "string" }
|
|
|
|
},
|
|
|
|
"specialBattlefields": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "Obstacles can be placed on specified specified battlefields",
|
2022-11-04 00:06:15 +02:00
|
|
|
"items": { "type" : "string" }
|
2022-09-15 10:06:54 +02:00
|
|
|
},
|
|
|
|
"width": {
|
|
|
|
"type": "number",
|
|
|
|
"description": "Width ob obstacle"
|
|
|
|
},
|
|
|
|
"height": {
|
|
|
|
"type": "number",
|
|
|
|
"description": "height if obstacle"
|
|
|
|
},
|
|
|
|
"blockedTiles": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "Blocked hexes - absolute or relative hex id",
|
|
|
|
"items": { "type" : "number" }
|
|
|
|
},
|
|
|
|
"animation": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "Image resource"
|
|
|
|
},
|
|
|
|
"unknown": {
|
|
|
|
"type": "number",
|
|
|
|
"description": "Unknown field"
|
|
|
|
},
|
|
|
|
"absolute": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Should be used absolute or relative coordinates for obstacle. There is possible only one absolute obstacle"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|