1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Update schemat for RMG template

This commit is contained in:
Tomasz Zieliński
2023-07-06 17:39:09 +02:00
parent a592f5604b
commit fcf7a29f45

View File

@@ -14,7 +14,10 @@
"playerTowns" : {"$ref" : "#/definitions/playerTowns"}, "playerTowns" : {"$ref" : "#/definitions/playerTowns"},
"neuralTowns" : {"$ref" : "#/definitions/neuralTowns"}, "neuralTowns" : {"$ref" : "#/definitions/neuralTowns"},
"townsAreSameType" : {"$ref" : "#/definitions/townsAreSameType"}, "townsAreSameType" : {"$ref" : "#/definitions/townsAreSameType"},
"terrainTypes": {"$ref" : "#/definitions/terrains"},
"bannedTerrains": {"$ref" : "#/definitions/terrains"},
"monsters" : {"$ref" : "#/definitions/monsters"}, "monsters" : {"$ref" : "#/definitions/monsters"},
"bannedMonsters" : {"$ref" : "#/definitions/monsters"},
"mines" : {"$ref" : "#/definitions/mines"}, "mines" : {"$ref" : "#/definitions/mines"},
"treasure" : { "treasure" : {
"type" : "array", "type" : "array",
@@ -42,7 +45,8 @@
}, },
"connection" : "connection" :
{ {
"required" : ["a", "b", "guard"], "required" : ["a", "b"],
"additionalProperties" : true,
"properties" : { "properties" : {
"a" : { "a" : {
"type" : "string" "type" : "string"
@@ -54,6 +58,12 @@
{ {
"type" : "number", "type" : "number",
"minimum" : 0 "minimum" : 0
},
"type":
{
"type" : "string",
"additionalProperties" : false,
"enum" : ["wide", "fictive", "repulsive"]
} }
} }
}, },
@@ -68,6 +78,9 @@
{ {
"required" : ["zones", "connections"], "required" : ["zones", "connections"],
"additionalProperties" : false, "additionalProperties" : false,
"description" : {
"type": "string"
},
"zones" : { "zones" : {
"type" : "object", "type" : "object",
"additionalProperties" : {"$ref" : "#/definitions/zone" } "additionalProperties" : {"$ref" : "#/definitions/zone" }