mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 15:20:01 +00:00
34 lines
821 B
INI
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
|