Beispiel #1
0
        public TMXTileSet GetTileSetByGID(int gid)
        {
            for (int i = 0; i < tileSets.Count; i++)
            {
                TMXTileSet set = tileSets[i];
                if (set.Contains(gid))
                {
                    return(set);
                }
            }

            return(null);
        }
Beispiel #2
0
        public TMXTileSet FindTileSet(int gid)
        {
            for (int i = 0; i < tileSets.Count; i++)
            {
                TMXTileSet set = (TMXTileSet)tileSets[i];

                if (set.Contains(gid))
                {
                    return(set);
                }
            }

            return(null);
        }