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",
|
|
|
|
"event", "garrison", "heroPlaceholder", "keymaster", "lighthouse", "magi", "mine", "obelisk", "pandora", "prison", "questGuard", "seerHut", "sign",
|
|
|
|
"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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|