1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/docs/modders/Entities_Format/Road_Format.md
Ivan Savenko 879aaba980 Use json instead of json5 for syntax highlight in docs
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)
2024-12-04 16:50:01 +00:00

346 B

Road Format

Format

"newRoad" :
{
	// Two-letters unique identifier for this road. Used in map format
	"shortIdentifier" : "mr",
	
	// Human-readable name of the road
	"text" : "My Road",
	
	// Name of file with road graphics
	"tilesFilename" : "myRoad.def"
	
	// How many movement points needed to move hero
	"moveCost" : 66
}