mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-16 10:19:47 +02:00
122db9963b
- town hall slots now use string ID's - converted building requirements to new format - "upgrades" property from buildings now uses string ID's - several fixes for improved support of alternative creatures - removed no longer needed "id" property from structures Old mods should still work but will produce error messages during validation
46 lines
1.2 KiB
JSON
46 lines
1.2 KiB
JSON
{
|
|
"type":"object",
|
|
"$schema": "http://json-schema.org/draft-04/schema",
|
|
"title" : "VCMI town structures format",
|
|
"description" : "Format used to define structures visible on town screen in VCMI",
|
|
"required": [ "animation", "x", "y"],
|
|
"additionalProperties" : false,
|
|
"properties":{
|
|
"animation": {
|
|
"type":"string",
|
|
"description" : "Main animation file for this building",
|
|
"format" : "animationFile"
|
|
},
|
|
"area": {
|
|
"type":"string",
|
|
"description" : "Area that indicate when building is selected. Must be 8-bit image",
|
|
"format" : "imageFile"
|
|
},
|
|
"border": {
|
|
"type":"string",
|
|
"description" : "Golden border around building, displayed when building is selected",
|
|
"format" : "imageFile"
|
|
},
|
|
"builds": {
|
|
"type" : "string",
|
|
"description" : ""
|
|
},
|
|
"hidden": {
|
|
"type":"boolean",
|
|
"description" : "If upgrade, this building will replace parent animation but will not alter its behaviour"
|
|
},
|
|
"x": {
|
|
"type":"number",
|
|
"description" : "Position on screen"
|
|
},
|
|
"y": {
|
|
"type":"number",
|
|
"description" : "Position on screen"
|
|
},
|
|
"z": {
|
|
"type":"number",
|
|
"description" : "Position on screen. Buildings with higher value will be drawn on top of other buildings"
|
|
}
|
|
}
|
|
}
|