#textdomain wesnoth

#define CORNER_OVERLAY_PLBF TERRAIN ADJACENT1 ADJACENT2 PROB LAYER BASE_POSITION FLAG IMAGE
    [terrain_graphics]
        map="
2
,  3
1"
        [tile]
            pos=1
            type={TERRAIN}

            no_flag={FLAG}-@R0
            set_flag={FLAG}-@R0
        [/tile]
        [tile]
            pos=2
            type={ADJACENT1}
            no_flag={FLAG}-@R2
            set_flag={FLAG}-@R2
        [/tile]
        [tile]
            pos=3
            type={ADJACENT2}
            no_flag={FLAG}-@R4
            set_flag={FLAG}-@R4
        [/tile]

        probability={PROB}
        rotations=tr,r,br,bl,l,tl

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

#!define CORNER_OVERLAY_PLF TERRAIN  ADJACENT1 ADJACENT2 PROB LAYER FLAG IMAGE
#    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) ({PROB}) ({LAYER}) (54,72) {FLAG} {IMAGE} }
#!enddef

#meta-macro CORNER_OVERLAY TERRAIN ADJACENT1 ADJACENT2 P=PROB=100 L=LAYER=0 B=BASE=(54,72) F=FLAG=overlay IMAGE

#define DISABLE_CORNER_TRANSITIONS_F TERRAIN FLAG
    [terrain_graphics]
        [tile]
            x=0
            y=0
            type={TERRAIN}
            set_flag={FLAG}-tr,{FLAG}-r,{FLAG}-br,{FLAG}-bl,{FLAG}-l,{FLAG}-tl
        [/tile]
    [/terrain_graphics]
#enddef

#define DISABLE_CORNER_TRANSITIONS TERRAIN
    {DISABLE_CORNER_TRANSITIONS_F {TERRAIN} overlay}
#enddef

#The following code is autogenerated by expand-terrain-macros.py
#generated from: #meta-macro CORNER_OVERLAY TERRAIN ADJACENT1 ADJACENT2 P=PROB=100 L=LAYER=0 B=BASE=(54,72) F=FLAG=overlay IMAGE
#Please do not modify
#define CORNER_OVERLAY_LBF TERRAIN ADJACENT1 ADJACENT2 LAYER BASE FLAG IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) 100 ({LAYER}) ({BASE}) ({FLAG}) ({IMAGE})}
#enddef
#define CORNER_OVERLAY_PBF TERRAIN ADJACENT1 ADJACENT2 PROB BASE FLAG IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) ({PROB}) 0 ({BASE}) ({FLAG}) ({IMAGE})}
#enddef
#define CORNER_OVERLAY_BF TERRAIN ADJACENT1 ADJACENT2 BASE FLAG IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) 100 0 ({BASE}) ({FLAG}) ({IMAGE})}
#enddef
#define CORNER_OVERLAY_PLF TERRAIN ADJACENT1 ADJACENT2 PROB LAYER FLAG IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) ({PROB}) ({LAYER}) (54,72) ({FLAG}) ({IMAGE})}
#enddef
#define CORNER_OVERLAY_LF TERRAIN ADJACENT1 ADJACENT2 LAYER FLAG IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) 100 ({LAYER}) (54,72) ({FLAG}) ({IMAGE})}
#enddef
#define CORNER_OVERLAY_PF TERRAIN ADJACENT1 ADJACENT2 PROB FLAG IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) ({PROB}) 0 (54,72) ({FLAG}) ({IMAGE})}
#enddef
#define CORNER_OVERLAY_F TERRAIN ADJACENT1 ADJACENT2 FLAG IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) 100 0 (54,72) ({FLAG}) ({IMAGE})}
#enddef
#define CORNER_OVERLAY_PLB TERRAIN ADJACENT1 ADJACENT2 PROB LAYER BASE IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) ({PROB}) ({LAYER}) ({BASE}) overlay ({IMAGE})}
#enddef
#define CORNER_OVERLAY_LB TERRAIN ADJACENT1 ADJACENT2 LAYER BASE IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) 100 ({LAYER}) ({BASE}) overlay ({IMAGE})}
#enddef
#define CORNER_OVERLAY_PB TERRAIN ADJACENT1 ADJACENT2 PROB BASE IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) ({PROB}) 0 ({BASE}) overlay ({IMAGE})}
#enddef
#define CORNER_OVERLAY_B TERRAIN ADJACENT1 ADJACENT2 BASE IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) 100 0 ({BASE}) overlay ({IMAGE})}
#enddef
#define CORNER_OVERLAY_PL TERRAIN ADJACENT1 ADJACENT2 PROB LAYER IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) ({PROB}) ({LAYER}) (54,72) overlay ({IMAGE})}
#enddef
#define CORNER_OVERLAY_L TERRAIN ADJACENT1 ADJACENT2 LAYER IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) 100 ({LAYER}) (54,72) overlay ({IMAGE})}
#enddef
#define CORNER_OVERLAY_P TERRAIN ADJACENT1 ADJACENT2 PROB IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) ({PROB}) 0 (54,72) overlay ({IMAGE})}
#enddef
#define CORNER_OVERLAY TERRAIN ADJACENT1 ADJACENT2 IMAGE
    {CORNER_OVERLAY_PLBF ({TERRAIN}) ({ADJACENT1}) ({ADJACENT2}) 100 0 (54,72) overlay ({IMAGE})}
#enddef
#end of generated code
