2013-04-02 20:06:43 +03:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2013-04-03 16:39:46 +03:00
|
|
|
"title" : "VCMI siege screen format",
|
|
|
|
"description" : "Format used to define town siege screen in VCMI",
|
|
|
|
"required" : [
|
2023-05-19 20:04:31 +02:00
|
|
|
"shooter", "towerIconLarge", "towerIconSmall", "imagePrefix",
|
|
|
|
"static", "towers", "walls", "gate", "moat"
|
2023-05-19 20:14:01 +02:00
|
|
|
],
|
2013-04-03 16:39:46 +03:00
|
|
|
"definitions" :
|
|
|
|
{
|
|
|
|
"point" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-03 16:39:46 +03:00
|
|
|
"required" : [ "x", "y" ],
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"x" : { "type" : "number" },
|
|
|
|
"y" : { "type" : "number" }
|
2013-04-03 16:39:46 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tower" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-03 16:39:46 +03:00
|
|
|
"required" : [ "battlement", "creature", "tower" ],
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"tower" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"description" : "Location of main segment of tower",
|
|
|
|
"$ref" : "#/definitions/point"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"battlement" : {
|
2013-04-03 16:39:46 +03:00
|
|
|
"description" : "Location of battlement, part of tower that covers shooter",
|
|
|
|
"$ref" : "#/definitions/point"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"creature" : {
|
2013-04-03 16:39:46 +03:00
|
|
|
"description" : "Location of shooter in tower",
|
|
|
|
"$ref" : "#/definitions/point"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"shooter" : {
|
|
|
|
"type" : "string",
|
2013-04-03 16:39:46 +03:00
|
|
|
"description" : "Identifier of creature that will be used as tower shooter"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"towerIconSmall" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Small icon for tower, used in battle queue",
|
2022-11-29 15:14:10 +02:00
|
|
|
"format" : "imageFile"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"towerIconLarge" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Large icon for tower, used in battle queue",
|
2022-11-29 15:14:10 +02:00
|
|
|
"format" : "imageFile"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"imagePrefix" : {
|
|
|
|
"type" : "string",
|
2023-05-19 20:04:31 +02:00
|
|
|
"description" : "Prefix to all images related to siege screen"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"static" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-03 16:39:46 +03:00
|
|
|
"description" : "Static sections of walls",
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"background" : {
|
2013-04-03 16:39:46 +03:00
|
|
|
"description" : "Very top section of the wall located above hero",
|
|
|
|
"$ref" : "#/definitions/point"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"top" : {
|
2013-04-03 16:39:46 +03:00
|
|
|
"description" : "Top section located between destructible sections",
|
|
|
|
"$ref" : "#/definitions/point"
|
2023-05-19 20:04:31 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"bottom" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"description" : "Bottom section located between destructible sections",
|
|
|
|
"$ref" : "#/definitions/point"
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"towers" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-03 16:39:46 +03:00
|
|
|
"description" : "Decription of towers",
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"top" : { "$ref" : "#/definitions/tower", "description" : "Top tower" },
|
|
|
|
"keep" : { "$ref" : "#/definitions/tower", "description" : "Central keep" },
|
|
|
|
"bottom" : { "$ref" : "#/definitions/tower", "description" : "Bottom tower" }
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"walls" : {
|
|
|
|
"type" : "object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-03 16:39:46 +03:00
|
|
|
"description" : "Destructible sections of the walls",
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"upper" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"description" : "Topmost section located near top tower",
|
|
|
|
"$ref" : "#/definitions/point"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"upperMid" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"description" : "Second from top section located near gates",
|
|
|
|
"$ref" : "#/definitions/point"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"bottomMid" : {
|
2013-04-03 16:39:46 +03:00
|
|
|
"description" : "Second from bottom section located near gates",
|
|
|
|
"$ref" : "#/definitions/point"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"bottom" : {
|
2013-04-03 16:39:46 +03:00
|
|
|
"description" : "Bottommost section located near bottom tower",
|
|
|
|
"$ref" : "#/definitions/point"
|
2023-05-19 20:04:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"gate" : {
|
|
|
|
"type" : "object",
|
2023-05-19 20:04:31 +02:00
|
|
|
"additionalProperties" : false,
|
|
|
|
"description" : "Town gates",
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"arch" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"description" : "Static, top part of gates",
|
|
|
|
"$ref" : "#/definitions/point"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"gate" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"description" : "Main section of gates",
|
|
|
|
"$ref" : "#/definitions/point"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"moat" : {
|
|
|
|
"type" : "object",
|
2023-05-19 20:04:31 +02:00
|
|
|
"additionalProperties" : false,
|
|
|
|
"description" : "Castle moat description",
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"bank" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"description" : "Small section with bank of the moat",
|
2013-04-03 16:39:46 +03:00
|
|
|
"$ref" : "#/definitions/point"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"moat" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"description" : "Main section of the moat",
|
2013-04-03 16:39:46 +03:00
|
|
|
"$ref" : "#/definitions/point"
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|