﻿<?xml version="1.0" encoding="UTF-8"?>
 <tileset version="1.10" tiledversion="1.11.0" name="grass_soil" tilewidth="48" tileheight="48" tilecount="16" columns="4">
     <image source="grass_soil_autotile.png" width="192" height="192" />

     <!-- TERRAIN DEFINITIONS for Auto-Tiling -->
     <terraintypes>
         <terrain name="Grass" tile="5" />
         <terrain name="TilledSoil" tile="13" />
     </terraintypes>

     <!-- GRASS TERRAIN (Tiles 0-7) -->
     <!-- Row 1: Top-Left, Top, Top-Right, Inner Top-Right Corner -->
     <tile id="0" terrain=",,,0">
         <properties>
             <property name="type" value="grass_topleft" />
         </properties>
     </tile>
     <tile id="1" terrain=",,0,0">
         <properties>
             <property name="type" value="grass_top" />
         </properties>
     </tile>
     <tile id="2" terrain=",,0,">
         <properties>
             <property name="type" value="grass_topright" />
         </properties>
     </tile>
     <tile id="3" terrain="0,0,0,">
         <properties>
             <property name="type" value="grass_inner_topright" />
         </properties>
     </tile>

     <!-- Row 2: Left, Center, Right, Inner Top-Left Corner -->
     <tile id="4" terrain=",0,,0">
         <properties>
             <property name="type" value="grass_left" />
         </properties>
     </tile>
     <tile id="5" terrain="0,0,0,0">
         <properties>
             <property name="type" value="grass_center" />
         </properties>
     </tile>
     <tile id="6" terrain="0,,,0">
         <properties>
             <property name="type" value="grass_right" />
         </properties>
     </tile>
     <tile id="7" terrain="0,,0,0">
         <properties>
             <property name="type" value="grass_inner_topleft" />
         </properties>
     </tile>

     <!-- TILLED SOIL TERRAIN (Tiles 8-15) -->
     <!-- Row 3: Top-Left, Top, Top-Right, Inner Top-Right Corner -->
     <tile id="8" terrain=",,,1">
         <properties>
             <property name="type" value="soil_topleft" />
         </properties>
     </tile>
     <tile id="9" terrain=",,1,1">
         <properties>
             <property name="type" value="soil_top" />
         </properties>
     </tile>
     <tile id="10" terrain=",,1,">
         <properties>
             <property name="type" value="soil_topright" />
         </properties>
     </tile>
     <tile id="11" terrain="1,1,1,">
         <properties>
             <property name="type" value="soil_inner_topright" />
         </properties>
     </tile>

     <!-- Row 4: Left, Center, Right, Inner Top-Left Corner -->
     <tile id="12" terrain=",1,,1">
         <properties>
             <property name="type" value="soil_left" />
         </properties>
     </tile>
     <tile id="13" terrain="1,1,1,1">
         <properties>
             <property name="type" value="soil_center" />
         </properties>
     </tile>
     <tile id="14" terrain="1,,,1">
         <properties>
             <property name="type" value="soil_right" />
         </properties>
     </tile>
     <tile id="15" terrain="1,,1,1">
         <properties>
             <property name="type" value="soil_inner_topleft" />
         </properties>
     </tile>
 </tileset>
