private void buildBuilding(BuildingType type) { try { p.AddCommand(new BuildCommand(p, u_target, h_target, type)); } catch (Exception e) { Notify(e.Message, Color.red); } EventManager.PostBuildEvent(new BuildEventArgs { name = type.ToString(), turns = type.BuildTotal() / type.BuildPerTurn() }); state = State.Selected; }