<? xml version = "1.0" encoding = "UTF-8" ?>
    <tileset version="1.10" tiledversion="1.11.0" name="water" tilewidth="48" tileheight="48" tilecount="441" columns="21">
        <image source="water.png" width="1024" height="1024" />

        <!-- WATER TERRAIN - Auto-tiling definition -->
        <!-- Assuming 3x3 corner pattern starts at tile 0 -->
        <terraintypes>
            <terrain name="Water" tile="10" />
        </terraintypes>

        <!-- Standard 3x3 Water Pattern (adjust IDs based on actual layout) -->
        <!-- Row 1 -->
        <tile id="0" terrain=",,,0">
            <properties>
                <property name="type" value="water_topleft" />
            </properties>
        </tile>
        <tile id="1" terrain=",,0,0">
            <properties>
                <property name="type" value="water_top" />
            </properties>
        </tile>
        <tile id="2" terrain=",,0,">
            <properties>
                <property name="type" value="water_topright" />
            </properties>
        </tile>

        <!-- Row 2 -->
        <tile id="21" terrain=",0,,0">
            <properties>
                <property name="type" value="water_left" />
            </properties>
        </tile>
        <tile id="22" terrain="0,0,0,0">
            <properties>
                <property name="type" value="water_center" />
                <property name="animated" type="bool" value="true" />
            </properties>
        </tile>
        <tile id="23" terrain="0,,,0">
            <properties>
                <property name="type" value="water_right" />
            </properties>
        </tile>

        <!-- Row 3 -->
        <tile id="42" terrain=",0,,">
            <properties>
                <property name="type" value="water_bottomleft" />
            </properties>
        </tile>
        <tile id="43" terrain="0,0,,">
            <properties>
                <property name="type" value="water_bottom" />
            </properties>
        </tile>
        <tile id="44" terrain="0,,,">
            <properties>
                <property name="type" value="water_bottomright" />
            </properties>
        </tile>

        <!-- Inner Corners (for complex shapes) -->
        <tile id="3" terrain="0,0,0,">
            <properties>
                <property name="type" value="water_inner_topright" />
            </properties>
        </tile>
        <tile id="24" terrain="0,,0,0">
            <properties>
                <property name="type" value="water_inner_topleft" />
            </properties>
        </tile>
        <tile id="45" terrain="0,0,,0">
            <properties>
                <property name="type" value="water_inner_bottomright" />
            </properties>
        </tile>
        <tile id="20" terrain=",0,0,0">
            <properties>
                <property name="type" value="water_inner_bottomleft" />
            </properties>
        </tile>
    </tileset>
