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; }
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); }