public static int GetTileCount(this Tileset tileset) { int width = tileset.GetNumberOfTilesWide(); int height = tileset.GetNumberOfTilesTall(); return(width * height); }
public static int IndexToLocalId(this Tileset tileset, int xIndex, int yIndex) { return(xIndex + yIndex * tileset.GetNumberOfTilesWide()); }