1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/config/schemas/townSiege.json

145 lines
3.9 KiB
JSON
Raw Normal View History

{
2023-05-19 20:14:01 +02:00
"type" : "object",
"additionalProperties" : false,
2023-05-19 20:14:01 +02:00
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "VCMI siege screen format",
"description" : "Format used to define town siege screen in VCMI",
"required" : [
"shooter", "towerIconLarge", "towerIconSmall", "imagePrefix",
"static", "towers", "walls", "gate", "moat"
2023-05-19 20:14:01 +02:00
],
"definitions" :
{
"point" : {
"type" : "object",
"additionalProperties" : false,
"required" : [ "x", "y" ],
2023-05-19 20:14:01 +02:00
"properties" : {
"x" : { "type" : "number" },
"y" : { "type" : "number" }
}
},
"tower" : {
"type" : "object",
"additionalProperties" : false,
"required" : [ "battlement", "creature", "tower" ],
2023-05-19 20:14:01 +02:00
"properties" : {
"tower" : {
"description" : "Location of main segment of tower",
"$ref" : "#/definitions/point"
},
2023-05-19 20:14:01 +02:00
"battlement" : {
"description" : "Location of battlement, part of tower that covers shooter",
"$ref" : "#/definitions/point"
},
2023-05-19 20:14:01 +02:00
"creature" : {
"description" : "Location of shooter in tower",
"$ref" : "#/definitions/point"
}
}
}
},
2023-05-19 20:14:01 +02:00
"properties" : {
"shooter" : {
"type" : "string",
"description" : "Identifier of creature that will be used as tower shooter"
},
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",
"description" : "Prefix to all images related to siege screen"
},
2023-05-19 20:14:01 +02:00
"static" : {
"type" : "object",
"additionalProperties" : false,
"description" : "Static sections of walls",
2023-05-19 20:14:01 +02:00
"properties" : {
"background" : {
"description" : "Very top section of the wall located above hero",
"$ref" : "#/definitions/point"
},
2023-05-19 20:14:01 +02:00
"top" : {
"description" : "Top section located between destructible sections",
"$ref" : "#/definitions/point"
},
2023-05-19 20:14:01 +02:00
"bottom" : {
"description" : "Bottom section located between destructible sections",
"$ref" : "#/definitions/point"
}
}
},
2023-05-19 20:14:01 +02:00
"towers" : {
"type" : "object",
"additionalProperties" : false,
"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" }
}
},
2023-05-19 20:14:01 +02:00
"walls" : {
"type" : "object",
"additionalProperties" : false,
"description" : "Destructible sections of the walls",
2023-05-19 20:14:01 +02:00
"properties" : {
"upper" : {
"description" : "Topmost section located near top tower",
"$ref" : "#/definitions/point"
},
2023-05-19 20:14:01 +02:00
"upperMid" : {
"description" : "Second from top section located near gates",
"$ref" : "#/definitions/point"
},
2023-05-19 20:14:01 +02:00
"bottomMid" : {
"description" : "Second from bottom section located near gates",
"$ref" : "#/definitions/point"
},
2023-05-19 20:14:01 +02:00
"bottom" : {
"description" : "Bottommost section located near bottom tower",
"$ref" : "#/definitions/point"
}
}
},
2023-05-19 20:14:01 +02:00
"gate" : {
"type" : "object",
"additionalProperties" : false,
"description" : "Town gates",
2023-05-19 20:14:01 +02:00
"properties" : {
"arch" : {
"description" : "Static, top part of gates",
"$ref" : "#/definitions/point"
},
2023-05-19 20:14:01 +02:00
"gate" : {
"description" : "Main section of gates",
"$ref" : "#/definitions/point"
}
}
},
2023-05-19 20:14:01 +02:00
"moat" : {
"type" : "object",
"additionalProperties" : false,
"description" : "Castle moat description",
2023-05-19 20:14:01 +02:00
"properties" : {
"bank" : {
"description" : "Small section with bank of the moat",
"$ref" : "#/definitions/point"
},
2023-05-19 20:14:01 +02:00
"moat" : {
"description" : "Main section of the moat",
"$ref" : "#/definitions/point"
}
}
}
}
}