private void OnDrawingAreaMouseClick(object sender, MouseEventArgs e) { if(e.Button == MouseButtons.Left) { FoodSource source = new FoodSource(e.X, e.Y); _worldManager.AddFoodSource(source); } else if(e.Button == MouseButtons.Right) { Nest nest = new Nest(e.X, e.Y); _worldManager.AddNest(nest); } }
private void OnDrawingAreaMouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { FoodSource source = new FoodSource(e.X, e.Y); _worldManager.AddFoodSource(source); } else if (e.Button == MouseButtons.Right) { Nest nest = new Nest(e.X, e.Y); _worldManager.AddNest(nest); } }
public void AddNest(Nest nest) { _nests.Add(nest); }