コード例 #1
0
 public override void ProcessEvent(TentativeFarmGridOffEvent e)
 {
     // this order of enabling is important
     this.farm.Enabled         = true;
     this.Enabled              = false;
     this.currSelectedTileType = null;
 }
コード例 #2
0
 public override void ProcessEvent(TentativeFarmGridOffEvent e)
 {
     this.isTentativeState = false;
     if (e.ApplyChanges)
     {
         this.money = this.tentativeMoney;
     }
 }
コード例 #3
0
 public override void ProcessEvent(TentativeFarmGridOffEvent e)
 {
     // apply tentative changes
     if (e.ApplyChanges)
     {
         this.ApplyTentativeGridChanges();
     }
     // call this to truly reenable the grid
     OnEnabled();
 }
コード例 #4
0
ファイル: BaseUI.cs プロジェクト: CeilingPhantom/TheHarvest2
 public virtual void ProcessEvent(TentativeFarmGridOffEvent e)
 {
 }