1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00
vcmi/config/schemas/terrain.json
2023-05-19 21:14:01 +03:00

144 lines
3.2 KiB
JSON

{
"type" : "object",
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "VCMI terrain format",
"description" : "Format used to define new terrains in VCMI",
"required" : [ "text", "moveCost", "minimapUnblocked", "minimapBlocked", "music", "tiles", "type", "horseSound", "horseSoundPenalty", "shortIdentifier", "battleFields" ],
"additionalProperties" : false,
"properties" : {
"text" :
{
"type" : "string",
"description" : "Human-readable name of this terrain"
},
"shortIdentifier" :
{
"type" : "string",
"description" : "Two-letters unique indentifier for this terrain. Used for map format"
},
"type" :
{
"type" : "array",
"description" : "Type of this terrain. Can be land, water, subterranean or rock",
"items" :
{
"enum" : ["LAND", "WATER", "SUB", "ROCK", "SURFACE"],
"type" : "string"
}
},
"moveCost" :
{
"type" : "number",
"description" : "How many movement points needed to move hero"
},
"tiles" :
{
"type" : "string",
"description" : "Name of file with graphicks",
"format" : "defFile"
},
"rockTerrain" :
{
"type" : "string",
"description" : "The name of rock type terrain which will be used as borders in the underground"
},
"river" :
{
"type" : "string",
"description" : "River type which should be used for that terrain"
},
"battleFields" :
{
"type" : "array",
"description" : "array of battleFields for this terrain",
"items" :
{
"type" : "string"
}
},
"minimapUnblocked" :
{
"type" : "array",
"description" : "Color of terrain on minimap without unpassable objects",
"minItems" : 3,
"maxItems" : 3,
"items" :
{
"type" : "number"
}
},
"minimapBlocked" :
{
"type" : "array",
"description" : "Color of terrain on minimap with unpassable objects",
"minItems" : 3,
"maxItems" : 3,
"items" :
{
"type" : "number"
}
},
"music" :
{
"type" : "string",
"description" : "Music filename to play on this terrain on adventure map",
"format" : "musicFile"
},
"sounds" :
{
"type" : "object",
"description" : "list of sounds for this terrain",
"additionalProperties" : false,
"properties" :
{
"ambient" :
{
"type" : "array",
"description" : "list of ambient sounds for this terrain",
"items" :
{
"type" : "string",
"format" : "soundFile"
}
}
}
},
"horseSound" :
{
"type" : "string",
"description" : "Hero movement sound for this terrain, version for moving on tiles with road",
"format" : "soundFile"
},
"horseSoundPenalty" :
{
"type" : "string",
"description" : "Hero movement sound for this terrain, version for moving on tiles without road",
"format" : "soundFile"
},
"prohibitTransitions" :
{
"type" : "array",
"description" : "array or terrain names, which is prohibited to make transition from/to",
"items" :
{
"type" : "string"
}
},
"transitionRequired" :
{
"type" : "boolean",
"description" : "If sand/dirt transition required from/to other terrains"
},
"terrainViewPatterns" :
{
"type" : "string",
"description" : "Can be normal, dirt, water, rock"
},
"index" :
{
"type" : "number",
"description" : "Internal, do not use"
}
}
}