2013-04-02 20:06:43 +03:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2013-04-02 20:06:43 +03:00
|
|
|
"title" : "VCMI town structures format",
|
|
|
|
"description" : "Format used to define structures visible on town screen in VCMI",
|
2023-05-19 20:14:01 +02:00
|
|
|
"required" : [ "animation", "x", "y"],
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"builds" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"type" : "string",
|
|
|
|
"description" : ""
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"hidden" : {
|
|
|
|
"type" : "boolean",
|
2023-05-19 20:04:31 +02:00
|
|
|
"description" : "If upgrade, this building will replace parent animation but will not alter its behaviour"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"animation" : {
|
|
|
|
"type" : "string",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description" : "Main animation file for this building",
|
|
|
|
"format" : "animationFile"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"area" : {
|
|
|
|
"type" : "string",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description" : "Area that indicate when building is selected. Must be 8-bit image",
|
|
|
|
"format" : "imageFile"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"border" : {
|
|
|
|
"type" : "string",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description" : "Golden border around building, displayed when building is selected",
|
|
|
|
"format" : "imageFile"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"x" : {
|
|
|
|
"type" : "number",
|
2013-04-02 20:06:43 +03:00
|
|
|
"description" : "Position on screen"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"y" : {
|
|
|
|
"type" : "number",
|
2013-04-02 20:06:43 +03:00
|
|
|
"description" : "Position on screen"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"z" : {
|
|
|
|
"type" : "number",
|
2013-04-02 20:06:43 +03:00
|
|
|
"description" : "Position on screen. Buildings with higher value will be drawn on top of other buildings"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|