Example #1
0
        public static int GetTileCount(this Tileset tileset)
        {
            int width  = tileset.GetNumberOfTilesWide();
            int height = tileset.GetNumberOfTilesTall();

            return(width * height);
        }
Example #2
0
 public static int IndexToLocalId(this Tileset tileset, int xIndex, int yIndex)
 {
     return(xIndex + yIndex * tileset.GetNumberOfTilesWide());
 }