Ejemplo n.º 1
0
 public void Dirty(Inventory inventory, ISession session)
 {
     _exportStats = GetCurrentInfo(inventory);
     DirtyEvent?.Invoke();
     OnStatisticChanged(session);
 }
Ejemplo n.º 2
0
 public void Dirty(Inventory inventory)
 {
     _exportStats = GetCurrentInfo(inventory);
     DirtyEvent?.Invoke();
 }
Ejemplo n.º 3
0
 public DirtyString(DirtyEvent parentDirtyEvent)
 {
     dirtyEvent = new DirtyEvent(parentDirtyEvent);
 }
Ejemplo n.º 4
0
 public void LoseAll()
 {
     essence = 0;
     DirtyEvent?.Invoke();
 }
Ejemplo n.º 5
0
 /// <summary>ess -= Abs(lose), returns true if race goes to zero</summary>
 public bool Lose(int lose)
 {
     essence -= Mathf.Abs(lose);
     DirtyEvent?.Invoke();
     return(essence <= 0);
 }
Ejemplo n.º 6
0
 public void Gain(int gain)
 {
     essence += Mathf.Max(0, gain);
     DirtyEvent?.Invoke();
 }