public void SetActiveTool(Tool newTool) { if (newTool == Tool.Demolish) { ActiveDemolishType = DemolishType.All; } ActiveTool = newTool; }
public void ToggleDemolishType(DemolishType demolishType) { if (ActiveDemolishType == demolishType) { DeselectDemolishType(); } else { SetActiveDemolishType(demolishType); } }
public static void AddToCount(DemolishType DType, int Count) { DemolishEvent DemoEvent; switch (DType) { case DemolishType.Abandon: TotalAbdandonedDemolished_Count += Count; DemoEvent = new DemolishEvent(DateTime.Now, DemolishType.Abandon, Count); break; case DemolishType.Burned: TotalBurnedDemolished_Count += Count; DemoEvent = new DemolishEvent(DateTime.Now, DemolishType.Abandon, Count); break; case DemolishType.Null: default: return; } DemolishEvents.Add(DemoEvent); }
public DemolishOptionsProperties(DemolishType demolishType) { this.DemolishType = demolishType; }
public DemolishEvent(DateTime _Time, DemolishType _Type, int _Count) { Time = _Time; Type = _Type; Count = _Count; }
private void DeselectDemolishType() { ActiveDemolishType = DemolishType.All; }
private void SetActiveDemolishType(DemolishType demolishType) { ActiveDemolishType = demolishType; Debug.Log("Selecting - " + ActiveDemolishType); }