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; }
public void init(Actor a, Hex h, BuildingType type) { base.init(a, h); this.type = type; required = type.BuildTotal(); }