1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-10 09:50:17 +02:00
vcmi/config/schemas/road.json

37 lines
864 B
JSON
Raw Normal View History

{
2023-05-19 20:14:01 +02:00
"type" : "object",
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "VCMI road format",
"description" : "Format used to define new roads in VCMI",
"required" : [ "shortIdentifier", "text", "tilesFilename", "moveCost" ],
"additionalProperties" : false,
2023-05-19 20:14:01 +02:00
"properties" : {
"shortIdentifier" :
{
2023-05-19 20:14:01 +02:00
"type" : "string",
"description" : "Two-letters unique indentifier for this road. Used in map format"
},
2023-05-19 20:14:01 +02:00
"text" :
{
2023-05-19 20:14:01 +02:00
"type" : "string",
"description" : "Human-readable name of the road"
},
2023-05-19 20:14:01 +02:00
"tilesFilename" :
{
2023-05-19 20:14:01 +02:00
"type" : "string",
"description" : "Name of file with road graphics",
"format" : "animationFile"
},
2023-05-19 20:14:01 +02:00
"moveCost" :
{
2023-05-19 20:14:01 +02:00
"type" : "number",
"description" : "How many movement points needed to move hero"
},
"index" :
{
2023-05-19 20:14:01 +02:00
"type" : "number",
"description" : "Internal, do not use"
}
}
}