1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
{
"type" : "object",
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "VCMI map obstacle set format",
"description" : "Description of map object set, used only as sub-schema of object",
"required" : ["biome", "templates"],
"additionalProperties" : true, // may have type-dependant properties
"properties" : {
"biome" : {
"type" : "object",
"properties": {
"objectType" : {
"type" : "string",
"enmum": ["mountain", "tree", "lake", "crater", "rock", "plant", "structure", "animal", "other"],
"description" : "Type of the obstacle set"
},
"terrain" : {
"anyOf": [
{
"type" : "string",
"description" : "Terrain of the obstacle set"
},
{
"type" : "array",
"items" : { "type" : "string" },
"description" : "Terrains of the obstacle set"
}
]
},
"faction" : {
"anyOf": [
{
"type" : "string",
"description" : "Faction of the zone"
},
{
"type" : "array",
"items" : { "type" : "string" },
"description" : "Factions of the zone"
}
]
},
"alignment" : {
"anyOf": [
{
"type" : "string",
"enum" : ["good", "evil", "neutral"],
"description" : "Alignment of faction of the zone"
},
{
"type" : "array",
"items" : { "type" : "string" },
"description" : "Alignment of faction of the zone"
}
]
}
}
},
"templates" : {
"type" : "array",
"items" : { "type" : "string" },
"description" : "Object templates of the obstacle set"
}
}
}
|