1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-10 09:50:17 +02:00
vcmi/config/schemas/townStructure.json
Ivan Savenko 9237e6d97d Improved json validation
- split JsonNode.cpp into JsonNode and JsonDetail files
- validation should be notably faster (at least 10% faster loading)
- support for "format" field, allows checking existance of files.
- minor fixes in schemas
- msk/msg files are now optional
2013-10-26 19:33:34 +00:00

50 lines
1.3 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":"number",
"description" : ""
},
"hidden": {
"type":"boolean",
"description" : "If upgrade, this building will replace parent animation but will not alter its behaviour"
},
"id": {
"type":"number",
"description" : "Numeric identifier of building"
},
"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"
}
}
}