#
# This file defines corner-transitions that can be applied to only some directions.
# They are currently used for chasm/wall and lava/wall transitions until better layering
# can be implemented in the engine.
#

#define TERRAIN_ADJACENT_CORNER_NS TERRAIN1 TERRAIN2 TERRAIN3 POS IMAGE
{TERRAIN_ADJACENT_CORNER_PARTIAL {TERRAIN1} {TERRAIN2} {TERRAIN3} ne,-,se,sw,-,nw {POS} {IMAGE}}
#enddef

#define TERRAIN_ADJACENT_CORNER_EW TERRAIN1 TERRAIN2 TERRAIN3 POS IMAGE
{TERRAIN_ADJACENT_CORNER_PARTIAL {TERRAIN1} {TERRAIN2} {TERRAIN3} -,e,-,-,w,- {POS} {IMAGE}}
#enddef

#define TERRAIN_ADJACENT_CORNER_NORTH TERRAIN1 TERRAIN2 TERRAIN3 POS IMAGE
{TERRAIN_ADJACENT_CORNER_PARTIAL {TERRAIN1} {TERRAIN2} {TERRAIN3} ne,-,-,-,-,nw {POS} {IMAGE}}
#enddef

#define TERRAIN_ADJACENT_CORNER_SOUTH TERRAIN1 TERRAIN2 TERRAIN3 POS IMAGE
{TERRAIN_ADJACENT_CORNER_PARTIAL {TERRAIN1} {TERRAIN2} {TERRAIN3} -,-,se,sw,-,- {POS} {IMAGE}}
#enddef

#define TERRAIN_ADJACENT_CORNER_E TERRAIN1 TERRAIN2 TERRAIN3 POS IMAGE
{TERRAIN_ADJACENT_CORNER_PARTIAL {TERRAIN1} {TERRAIN2} {TERRAIN3} -,e,-,-,-,- {POS} {IMAGE}}
#enddef

#define TERRAIN_ADJACENT_CORNER_W TERRAIN1 TERRAIN2 TERRAIN3 POS IMAGE
{TERRAIN_ADJACENT_CORNER_PARTIAL {TERRAIN1} {TERRAIN2} {TERRAIN3} -,-,-,-,w,- {POS} {IMAGE}}
#enddef

#define TERRAIN_ADJACENT_CORNER_NE TERRAIN1 TERRAIN2 TERRAIN3 POS IMAGE
{TERRAIN_ADJACENT_CORNER_PARTIAL {TERRAIN1} {TERRAIN2} {TERRAIN3} ne,-,-,-,-,- {POS} {IMAGE}}
#enddef

#define TERRAIN_ADJACENT_CORNER_NW TERRAIN1 TERRAIN2 TERRAIN3 POS IMAGE
{TERRAIN_ADJACENT_CORNER_PARTIAL {TERRAIN1} {TERRAIN2} {TERRAIN3} -,-,-,-,-,nw {POS} {IMAGE}}
#enddef

#define TERRAIN_ADJACENT_CORNER_SE TERRAIN1 TERRAIN2 TERRAIN3 POS IMAGE
{TERRAIN_ADJACENT_CORNER_PARTIAL {TERRAIN1} {TERRAIN2} {TERRAIN3} -,-,se,-,-,- {POS} {IMAGE}}
#enddef

#define TERRAIN_ADJACENT_CORNER_SW TERRAIN1 TERRAIN2 TERRAIN3 POS IMAGE
{TERRAIN_ADJACENT_CORNER_PARTIAL {TERRAIN1} {TERRAIN2} {TERRAIN3} -,-,-,sw,-,- {POS} {IMAGE}}
#enddef

#define TERRAIN_ADJACENT_CORNER_PARTIAL TERRAIN1 TERRAIN2 TERRAIN3 ROT POS IMAGE
[terrain_graphics]
	map="
3
  2
1"
	[tile]
		pos=1
		type={TERRAIN1}
	[/tile]
	[tile]
		pos=2
		type={TERRAIN2}
	[/tile]
	[tile]
		pos=3
		type={TERRAIN3}
	[/tile]

	[image]
		base={POS}
		position=vertical
		name={IMAGE}-@R0
	[/image]
	rotations={ROT}
[/terrain_graphics]
#enddef
