Exemple #1
0
        public static TileSet GetTileSet(this TileLayer tileLayer)
        {
            foreach (var tileSet in tileLayer.map.tileSets)
            {
                if (tileLayer.IsUsing(tileSet))
                {
                    return(tileSet);
                }
            }

            return(tileLayer.map.tileSets[0]);
        }