コード例 #1
0
ファイル: Statistics.cs プロジェクト: LEQUI000/NecroBot
 public void Dirty(Inventory inventory, ISession session)
 {
     _exportStats  = GetCurrentInfo(inventory);
     TotalStardust = inventory.GetStarDust();
     DirtyEvent?.Invoke();
     OnStatisticChanged(session);
 }
コード例 #2
0
 public void Dirty(Inventory inventory, ISession session)
 {
     _exportStats  = GetCurrentInfo(session, inventory).Result;
     TotalStardust = inventory.GetStarDust();
     TinyIoCContainer.Current.Resolve <MultiAccountManager>().DirtyEventHandle(this);
     DirtyEvent?.Invoke();
     OnStatisticChanged(session);
 }
コード例 #3
0
        public void Dirty(Inventory inventory)
        {
            if (_exportStats != null)
            {
                _currentStats = _exportStats;
            }

            _exportStats = GetCurrentInfo(inventory);
            DirtyEvent?.Invoke();
        }
コード例 #4
0
        public async void Dirty(Inventory inventory)
        {
            if (ExportStats != null)
            {
                _currentStats = ExportStats;
            }

            ExportStats = await GetCurrentInfo(inventory);

            DirtyEvent?.Invoke();
        }
コード例 #5
0
ファイル: Statistics.cs プロジェクト: yurkon/NecroBot
 public void Dirty(Inventory inventory)
 {
     _exportStats = GetCurrentInfo(inventory);
     DirtyEvent?.Invoke();
 }
コード例 #6
0
ファイル: Race.cs プロジェクト: yoyo02222803/TEoG_Unity_2
 public void LoseAll()
 {
     essence = 0;
     DirtyEvent?.Invoke();
 }
コード例 #7
0
ファイル: Race.cs プロジェクト: yoyo02222803/TEoG_Unity_2
 /// <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);
 }
コード例 #8
0
ファイル: Race.cs プロジェクト: yoyo02222803/TEoG_Unity_2
 public void Gain(int gain)
 {
     essence += Mathf.Max(0, gain);
     DirtyEvent?.Invoke();
 }