2023-01-09 01:53:30 +02:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2023-01-09 01:53:30 +02:00
|
|
|
"title" : "VCMI river format",
|
|
|
|
"description" : "Format used to define new rivers in VCMI",
|
2023-05-19 20:04:31 +02:00
|
|
|
"required" : [ "shortIdentifier", "text", "tilesFilename", "delta" ],
|
2023-01-09 01:53:30 +02:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"shortIdentifier" :
|
2023-01-09 01:53:30 +02:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
2023-09-18 13:06:56 +02:00
|
|
|
"description" : "Two-letters unique indentifier for this river. Used in map format"
|
2023-01-09 01:53:30 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"text" :
|
2023-01-09 01:53:30 +02:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Human-readable name of the river"
|
2023-01-09 01:53:30 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"tilesFilename" :
|
2023-01-09 01:53:30 +02:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Name of file with river graphics",
|
|
|
|
"format" : "defFile"
|
2023-01-09 01:53:30 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"delta" :
|
2023-01-09 01:53:30 +02:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Name of file with river delta graphics"
|
2023-05-19 20:04:31 +02:00
|
|
|
},
|
2023-07-05 21:07:20 +02:00
|
|
|
"paletteAnimation" : {
|
|
|
|
"type" : "array",
|
2023-09-18 13:06:56 +02:00
|
|
|
"description" : "If defined, river will be animated using palette color cycling effect",
|
2023-07-05 21:07:20 +02:00
|
|
|
"items" :
|
|
|
|
{
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"properties" : {
|
|
|
|
"start" : {
|
|
|
|
"type" : "number"
|
|
|
|
},
|
|
|
|
"length" : {
|
|
|
|
"type" : "number"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-05-19 20:04:31 +02:00
|
|
|
"index" :
|
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "Internal, do not use"
|
2023-01-09 01:53:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|