wesnoth/data/schema/terrain/graphics.cfg
Celtic Minstrel 3a65a14bcb Implement validation of the core game config WML
Currently this is disabled by default
Use --validate command-line argument to enable

The following new features were added in the schema format:
* Union, intersection, and list types
* Keys can specify a union of known types on-the-fly
* Key and tag names can include wildcards (* and ?, glob-style)
* Tags support any_key=yes, which means unrecognized subtags will be ignored
* Tags and keys support deprecated=yes (unimplemented)
* Specify max=infinite instead of max=-1
2018-10-23 22:36:40 -04:00

55 lines
1.4 KiB
INI

[tag]
name="terrain_graphics"
max=infinite
{SIMPLE_KEY x int}
{SIMPLE_KEY y int}
{SIMPLE_KEY mod_x int}
{SIMPLE_KEY mod_y int}
{SIMPLE_KEY probability int}
{SIMPLE_KEY rotations string_list}
{SIMPLE_KEY set_flag string_list}
{SIMPLE_KEY has_flag string_list}
{SIMPLE_KEY no_flag string_list}
{SIMPLE_KEY map string}
[tag]
name="tile"
max=infinite
{SIMPLE_KEY x int}
{SIMPLE_KEY y int}
{SIMPLE_KEY pos string} # TODO: Can this be validated?
{SIMPLE_KEY type terrain_list}
{SIMPLE_KEY name prog_string}
{DEFAULT_KEY no_draw bool no}
{SIMPLE_KEY set_flag string_list}
{SIMPLE_KEY has_flag string_list}
{SIMPLE_KEY no_flag string_list}
{SIMPLE_KEY set_no_flag string_list}
[tag]
name="image"
max=infinite
{SIMPLE_KEY layer int}
{SIMPLE_KEY name string}
{DEFAULT_KEY random_start bool,int yes}
{SIMPLE_KEY position string} # Not documented
{SIMPLE_KEY base point}
{SIMPLE_KEY variations string} # Not documented
{SIMPLE_KEY is_water bool} # Not documented
[tag]
name="variant"
max=infinite
{SIMPLE_KEY tod string}
{SIMPLE_KEY name string}
{SIMPLE_KEY layer int} # Not documented
{DEFAULT_KEY random_start bool,int yes}
{SIMPLE_KEY has_flag string_list}
[/tag]
[/tag]
[/tag]
[tag]
name="image"
max=infinite
super="terrain_graphics/tile/image"
{SIMPLE_KEY center point}
[/tag]
[/tag]