2014-06-03 22:45:18 +03:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2014-06-03 22:45:18 +03:00
|
|
|
"title" : "VCMI map object format",
|
|
|
|
"description" : "Description of map object class",
|
2023-05-19 20:14:01 +02:00
|
|
|
"required" : [ "name", "handler" ],
|
2014-06-03 22:45:18 +03:00
|
|
|
"additionalProperties" : false,
|
|
|
|
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"name" : {
|
|
|
|
"type" : "string"
|
2023-05-19 20:04:31 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"index" : {
|
|
|
|
"type" : "number"
|
2014-06-03 22:45:18 +03:00
|
|
|
},
|
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" : {
|
2024-09-02 16:47:37 +02:00
|
|
|
"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",
|
2024-11-03 16:36:54 +02:00
|
|
|
"event", "garrison", "heroPlaceholder", "keymaster", "flaggable", "magi", "mine", "obelisk", "pandora", "prison", "questGuard", "seerHut", "sign",
|
2024-09-02 16:47:37 +02:00
|
|
|
"siren", "monolith", "subterraneanGate", "whirlpool", "terrain"
|
|
|
|
]
|
2014-06-03 22:45:18 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"base" : {
|
2014-06-04 11:25:13 +03:00
|
|
|
"type" : "object"
|
2014-06-03 22:45:18 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"types" : {
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : {
|
2018-10-30 23:30:56 +02:00
|
|
|
"$ref" : "objectType.json"
|
2014-06-03 22:45:18 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|