mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
879aaba980
Looks like website only recognizes javascript & json, and is not aware of jsonc or json5. Will result in small regression on Github web view - comments will show up as red (since comments are not part of json format), but syntax highlight would work both on website and on Github. Alternative is using javascript for syntax highlight, however syntax highlighter for json looks better on both website and Github (since it uses separate highlighting for json keys, separate from strings in values)
895 B
895 B
River Format
Format
"newRiver" :
{
// Two-letters unique identifier for this river. Used in map format
"shortIdentifier" : "mr",
// Human-readable name of the river
"text" : "My Road",
// Name of file with river graphics
"tilesFilename" : "myRiver.def"
// Name of file with river delta graphics
// TODO: describe how exactly to use this tricky field
"delta" : "",
// If defined, river will be animated using palette color cycling effect
// Game will cycle "length" colors starting from "start" (zero-based index) on each animation update every 180ms
// Color numbering uses palette color indexes, as seen in image editor
// Note that some tools for working with .def files may reorder palette.
// To avoid this, it is possible to use json with indexed png images instead of def files
"paletteAnimation" : [
{ "start" : 10, "length" : 5 },
...
]
}