예제 #1
0
        public ILocust GetLocust(string color)
        {
            if (this.list.ContainsKey(color))
            {
                return this.list[color];
            }

            var locust = new SmallLocustSwarm(color);

            list.Add(color, locust);

            return locust;
        }
예제 #2
0
        public ILocust GetLocust(string color)
        {
            if (this.list.ContainsKey(color))
            {
                return(this.list[color]);
            }

            var locust = new SmallLocustSwarm(color);

            list.Add(color, locust);

            return(locust);
        }