wesnoth/data/core/macros/terrain-utils.cfg
Eric S. Raymond 5f58e50664 Reindented all macros except utils.cfg,
that has unbalanced FOREACH/NEXT in it and will need to be
hand-checked.
2007-06-29 11:19:19 +00:00

34 lines
821 B
INI

# Utility macros for manipulating map terrain.
# These don't depend on any other macros. Please don't change this.
# ! in comments is used in generating HTML documentation, ignore it otherwise.
#define MODIFY_TERRAIN LETTER X Y
# Changes the terrain at a given list of coordinates
#
# For example, we could make 14,15 and 14,16 grassland:
#! {MODIFY_TERRAIN g (14,14) (15,16)}
[terrain]
letter={LETTER}
x={X}
y={Y}
[/terrain]
#enddef
#define MODIFY_TERRAIN_MASK X Y MASK RULES
# Changes the terrain for a given area
#
# For example, we could create a castle at 10,12:
#! {MODIFY_TERRAIN_MASK 10 12 (
#! CC
#! CKC
#! CC
#! )}
[terrain_mask]
x={X}
y={Y}
mask={MASK}
{RULES}
[/terrain_mask]
#enddef