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

39 lines
1.1 KiB
JSON
Raw Normal View History

{
2023-05-19 20:14:01 +02:00
"type" : "object",
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "VCMI map object format",
"description" : "Description of map object class",
2023-05-19 20:14:01 +02:00
"required" : [ "name", "handler" ],
"additionalProperties" : false,
2023-05-19 20:14:01 +02:00
"properties" : {
"name" : {
"type" : "string"
},
2023-05-19 20:14:01 +02:00
"index" : {
"type" : "number"
},
2023-01-01 20:51:56 +02:00
"lastReservedIndex" : {
2023-05-19 20:14:01 +02:00
"type" : "number"
2023-01-01 20:51:56 +02:00
},
2023-05-19 20:14:01 +02:00
"handler" : {
"type" : "string",
"enum" : [
"configurable", "dwelling", "hero", "town", "boat", "market", "hillFort", "shipyard", "monster", "resource", "static", "randomArtifact",
"randomHero", "randomResource", "randomTown", "randomMonster", "randomDwelling", "generic", "artifact", "borderGate", "borderGuard", "denOfThieves",
"event", "garrison", "heroPlaceholder", "keymaster", "lighthouse", "magi", "mine", "obelisk", "pandora", "prison", "questGuard", "seerHut", "sign",
"siren", "monolith", "subterraneanGate", "whirlpool", "terrain"
]
},
2023-05-19 20:14:01 +02:00
"base" : {
"type" : "object"
},
2023-05-19 20:14:01 +02:00
"types" : {
"type" : "object",
"additionalProperties" : {
"$ref" : "objectType.json"
}
}
}
}