Beispiel #1
0
        public void Add(MapSprite mapSprite)
        {
            if (mapSprite == null)
            {
                throw new ArgumentNullException(nameof(mapSprite));
            }

            this.mapSprites.Add(mapSprite);
        }
Beispiel #2
0
        public bool IsExist(MapSprite.Type type)
        {
            MapSprite sprite = this[type];

            if (sprite == null)
            {
                return(false);
            }
            return(sprite.Is(type));
        }
Beispiel #3
0
 public int GetID(MapSprite mapSprite)
 => GetID(s => s == mapSprite);