#textdomain wesnoth

# Defines a terrain that has a transition image of the form: "void-n-ne-se-s.png"
# example: {TERRAIN_ADJACENT_4 gt !gt grassland}
# This will add 4-tile transitions from terrains of type g or t to terrains of
# any other type, using the filename grassland-x-x-x-x.png

#define TRANSITION1_OVERLAY_PLBF TERRAIN ADJACENT PROB LAYER BASE FLAG IMAGE
    [terrain_graphics]
        map="
,  2
*,   *
,  1
*,   *
,  *"

        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

        [tile]
            pos=1
            type={TERRAIN}
            no_flag={FLAG}
            set_flag={FLAG}
        [/tile]

        probability={PROB}
        rotations=n,ne,se,s,sw,nw

        [image]
            name={IMAGE}-@R0
            layer={LAYER}
            base={BASE}
        [/image]
    [/terrain_graphics]
#enddef

#!define TRANSITION1_OVERLAY_PLF TERRAIN  ADJACENT PROB LAYER FLAG IMAGE
#    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) (90,144) {FLAG} {IMAGE} }
#!enddef

#meta-macro TRANSITION1_OVERLAY TERRAIN  ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGE

#define TRANSITION2_OVERLAY_PLBF TERRAIN ADJACENT PROB LAYER BASE FLAG IMAGE
    [terrain_graphics]
        map="
,  2
*,   2
,  1
*,   *
,  *"
        [tile]
            pos=1
            type={TERRAIN}

            no_flag={FLAG}
            set_flag={FLAG}
        [/tile]
        [tile]
            pos=2
            type={ADJACENT}
        [/tile]

        probability={PROB}
        rotations=n,ne,se,s,sw,nw

        [image]
            layer={LAYER}
            base={BASE}
            name={IMAGE}-@R0-@R1
        [/image]
    [/terrain_graphics]
#enddef

#!define TRANSITION2_OVERLAY_PLF TERRAIN  ADJACENT PROB LAYER FLAG IMAGE
#    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) (90,144) {FLAG} {IMAGE} }
#!enddef

#meta-macro TRANSITION2_OVERLAY TERRAIN  ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGE

#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION1_OVERLAY TERRAIN  ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGE
#Please do not modify
#define TRANSITION1_OVERLAY_LBF TERRAIN ADJACENT LAYER BASE FLAG IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({BASE}) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_PBF TERRAIN ADJACENT PROB BASE FLAG IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({BASE}) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_BF TERRAIN ADJACENT BASE FLAG IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 ({BASE}) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) (90,144) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_LF TERRAIN ADJACENT LAYER FLAG IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) (90,144) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_PF TERRAIN ADJACENT PROB FLAG IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 (90,144) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_F TERRAIN ADJACENT FLAG IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 (90,144) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_PLB TERRAIN ADJACENT PROB LAYER BASE IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) ({BASE}) overlay ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_LB TERRAIN ADJACENT LAYER BASE IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({BASE}) overlay ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_PB TERRAIN ADJACENT PROB BASE IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({BASE}) overlay ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_B TERRAIN ADJACENT BASE IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 ({BASE}) overlay ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_PL TERRAIN ADJACENT PROB LAYER IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) (90,144) overlay ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_L TERRAIN ADJACENT LAYER IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) (90,144) overlay ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY_P TERRAIN ADJACENT PROB IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 (90,144) overlay ({IMAGE})}
#enddef
#define TRANSITION1_OVERLAY TERRAIN ADJACENT IMAGE
    {TRANSITION1_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 (90,144) overlay ({IMAGE})}
#enddef
#end of generated code
#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro TRANSITION2_OVERLAY TERRAIN  ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGE
#Please do not modify
#define TRANSITION2_OVERLAY_LBF TERRAIN ADJACENT LAYER BASE FLAG IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({BASE}) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_PBF TERRAIN ADJACENT PROB BASE FLAG IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({BASE}) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_BF TERRAIN ADJACENT BASE FLAG IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 ({BASE}) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) (90,144) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_LF TERRAIN ADJACENT LAYER FLAG IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) (90,144) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_PF TERRAIN ADJACENT PROB FLAG IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 (90,144) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_F TERRAIN ADJACENT FLAG IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 (90,144) ({FLAG}) ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_PLB TERRAIN ADJACENT PROB LAYER BASE IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) ({BASE}) overlay ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_LB TERRAIN ADJACENT LAYER BASE IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) ({BASE}) overlay ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_PB TERRAIN ADJACENT PROB BASE IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 ({BASE}) overlay ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_B TERRAIN ADJACENT BASE IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 ({BASE}) overlay ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_PL TERRAIN ADJACENT PROB LAYER IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) ({LAYER}) (90,144) overlay ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_L TERRAIN ADJACENT LAYER IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 ({LAYER}) (90,144) overlay ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY_P TERRAIN ADJACENT PROB IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) ({PROB}) 0 (90,144) overlay ({IMAGE})}
#enddef
#define TRANSITION2_OVERLAY TERRAIN ADJACENT IMAGE
    {TRANSITION2_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT}) 100 0 (90,144) overlay ({IMAGE})}
#enddef
#end of generated code
