override protected bool _undo(ExcecutionSteps executed) { if (executed == ExcecutionSteps.Executed) { region.demographics.taxation -= taxChange; } taxOrders.Remove(region); return(true); }
protected override bool _undo(ExcecutionSteps executed) { var allowed = executed == ExcecutionSteps.Created || executed == ExcecutionSteps.Executed || Game.ActionPoints.ConsumePoints(1); if (allowed) { deploymentOrders.Remove(this); } return(allowed); }
public IEnumerator <Coroutine> execute() { if (exectued != ExcecutionSteps.Ordered) { Debug.LogWarning("Attempting to execute order twice"); yield return(null); } exectued = ExcecutionSteps.Executing; yield return(StartCoroutine(_execute())); }
abstract protected bool _undo(ExcecutionSteps executed);
public void completeExecution() { exectued = ExcecutionSteps.Executed; }
protected void SetOrdered() { exectued = ExcecutionSteps.Ordered; }