2015-05-26 18:19:41 +02:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2015-05-26 18:19:41 +02:00
|
|
|
"title" : "VCMI random map template format",
|
|
|
|
"description" : "Format used to define random map templates in VCMI",
|
|
|
|
"definitions" :
|
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"zone" : {
|
|
|
|
"type" : "object",
|
2015-05-27 11:30:46 +02:00
|
|
|
"required" : ["type", "monsters", "size"],
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"type" : {"$ref" : "#/definitions/type"},
|
|
|
|
"size" : {"$ref" : "#/definitions/size"},
|
|
|
|
"playerTowns" : {"$ref" : "#/definitions/playerTowns"},
|
|
|
|
"neuralTowns" : {"$ref" : "#/definitions/neuralTowns"},
|
|
|
|
"townsAreSameType" : {"$ref" : "#/definitions/townsAreSameType"},
|
2023-07-06 17:39:09 +02:00
|
|
|
"terrainTypes": {"$ref" : "#/definitions/terrains"},
|
|
|
|
"bannedTerrains": {"$ref" : "#/definitions/terrains"},
|
2023-05-19 20:14:01 +02:00
|
|
|
"monsters" : {"$ref" : "#/definitions/monsters"},
|
2023-07-06 17:39:09 +02:00
|
|
|
"bannedMonsters" : {"$ref" : "#/definitions/monsters"},
|
2023-05-19 20:14:01 +02:00
|
|
|
"mines" : {"$ref" : "#/definitions/mines"},
|
|
|
|
"treasure" : {
|
|
|
|
"type" : "array",
|
|
|
|
"items" : {
|
|
|
|
"type" : "object",
|
|
|
|
"properties" : {
|
|
|
|
"min" : {"type" : "number", "minimum" : 0},
|
|
|
|
"max" : {"type" : "number", "minimum" : 0},
|
|
|
|
"density" : {"type" : "number", "minimum" : 1}
|
2015-05-26 18:19:41 +02:00
|
|
|
},
|
|
|
|
"additionalProperties" : false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : {
|
|
|
|
"type" : "string",
|
2015-05-27 11:30:46 +02:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"enum" : ["playerStart", "cpuStart", "treasure", "junction"]
|
2015-05-26 18:19:41 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"size" : {
|
|
|
|
"type" : "number",
|
|
|
|
"minimum" : 1,
|
2023-05-19 20:04:31 +02:00
|
|
|
"additionalProperties" : false
|
2015-06-02 16:40:32 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"connection" :
|
2015-06-02 15:26:33 +02:00
|
|
|
{
|
2023-07-06 17:39:09 +02:00
|
|
|
"required" : ["a", "b"],
|
|
|
|
"additionalProperties" : true,
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"a" : {
|
2015-06-02 15:26:33 +02:00
|
|
|
"type" : "string"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"b" : {
|
2015-06-02 15:26:33 +02:00
|
|
|
"type" : "string"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"guard" :
|
2015-06-02 15:26:33 +02:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "number",
|
2015-06-02 15:26:33 +02:00
|
|
|
"minimum" : 0
|
2023-07-06 17:39:09 +02:00
|
|
|
},
|
|
|
|
"type":
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"enum" : ["wide", "fictive", "repulsive"]
|
2015-06-02 15:26:33 +02:00
|
|
|
}
|
|
|
|
}
|
2022-06-05 08:02:58 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"waterContent" :
|
2022-06-05 08:02:58 +02:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"enum" : ["none", "normal", "islands"],
|
2022-06-05 08:02:58 +02:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string"
|
2015-06-02 15:26:33 +02:00
|
|
|
}
|
2015-05-26 18:19:41 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" :
|
2015-05-26 18:19:41 +02:00
|
|
|
{
|
2023-05-19 20:04:31 +02:00
|
|
|
"required" : ["zones", "connections"],
|
|
|
|
"additionalProperties" : false,
|
2023-07-06 17:39:09 +02:00
|
|
|
"description" : {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"zones" : {
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : {"$ref" : "#/definitions/zone" }
|
2015-05-26 18:19:41 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"connections" : {
|
|
|
|
"type" : "array",
|
|
|
|
"items" : {"$ref" : "#/definitions/connection"}
|
2015-05-27 11:30:46 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"allowedWaterContent" : {
|
|
|
|
"type" : "array",
|
|
|
|
"items" : {"$ref" : "#/definitions/waterContent"}
|
2023-05-19 20:04:31 +02:00
|
|
|
}
|
2015-05-26 18:19:41 +02:00
|
|
|
}
|
|
|
|
}
|