1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-30 08:57:00 +02:00
vcmi/config/schemas/townSiege.json
2023-05-19 21:14:01 +03:00

145 lines
3.9 KiB
JSON

{
"type" : "object",
"additionalProperties" : false,
"$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"
],
"definitions" :
{
"point" : {
"type" : "object",
"additionalProperties" : false,
"required" : [ "x", "y" ],
"properties" : {
"x" : { "type" : "number" },
"y" : { "type" : "number" }
}
},
"tower" : {
"type" : "object",
"additionalProperties" : false,
"required" : [ "battlement", "creature", "tower" ],
"properties" : {
"tower" : {
"description" : "Location of main segment of tower",
"$ref" : "#/definitions/point"
},
"battlement" : {
"description" : "Location of battlement, part of tower that covers shooter",
"$ref" : "#/definitions/point"
},
"creature" : {
"description" : "Location of shooter in tower",
"$ref" : "#/definitions/point"
}
}
}
},
"properties" : {
"shooter" : {
"type" : "string",
"description" : "Identifier of creature that will be used as tower shooter"
},
"towerIconSmall" : {
"type" : "string",
"description" : "Small icon for tower, used in battle queue",
"format" : "imageFile"
},
"towerIconLarge" : {
"type" : "string",
"description" : "Large icon for tower, used in battle queue",
"format" : "imageFile"
},
"imagePrefix" : {
"type" : "string",
"description" : "Prefix to all images related to siege screen"
},
"static" : {
"type" : "object",
"additionalProperties" : false,
"description" : "Static sections of walls",
"properties" : {
"background" : {
"description" : "Very top section of the wall located above hero",
"$ref" : "#/definitions/point"
},
"top" : {
"description" : "Top section located between destructible sections",
"$ref" : "#/definitions/point"
},
"bottom" : {
"description" : "Bottom section located between destructible sections",
"$ref" : "#/definitions/point"
}
}
},
"towers" : {
"type" : "object",
"additionalProperties" : false,
"description" : "Decription of towers",
"properties" : {
"top" : { "$ref" : "#/definitions/tower", "description" : "Top tower" },
"keep" : { "$ref" : "#/definitions/tower", "description" : "Central keep" },
"bottom" : { "$ref" : "#/definitions/tower", "description" : "Bottom tower" }
}
},
"walls" : {
"type" : "object",
"additionalProperties" : false,
"description" : "Destructible sections of the walls",
"properties" : {
"upper" : {
"description" : "Topmost section located near top tower",
"$ref" : "#/definitions/point"
},
"upperMid" : {
"description" : "Second from top section located near gates",
"$ref" : "#/definitions/point"
},
"bottomMid" : {
"description" : "Second from bottom section located near gates",
"$ref" : "#/definitions/point"
},
"bottom" : {
"description" : "Bottommost section located near bottom tower",
"$ref" : "#/definitions/point"
}
}
},
"gate" : {
"type" : "object",
"additionalProperties" : false,
"description" : "Town gates",
"properties" : {
"arch" : {
"description" : "Static, top part of gates",
"$ref" : "#/definitions/point"
},
"gate" : {
"description" : "Main section of gates",
"$ref" : "#/definitions/point"
}
}
},
"moat" : {
"type" : "object",
"additionalProperties" : false,
"description" : "Castle moat description",
"properties" : {
"bank" : {
"description" : "Small section with bank of the moat",
"$ref" : "#/definitions/point"
},
"moat" : {
"description" : "Main section of the moat",
"$ref" : "#/definitions/point"
}
}
}
}
}