示例#1
0
 public override void ResetByPlanets()
 {
     boughtCashUpgrades.Clear();
     boughtSecuritiesUpgrades.Clear();
     upgradedGeneratorsIds.Clear();
     ProfitUpgradeLevels.Clear();
     SpeedUpgradeLevels.Clear();
     IsLoaded = true;
 }
示例#2
0
 private void AddProfitUpgradeLevel(int id, int count)
 {
     if (ProfitUpgradeLevels.ContainsKey(id))
     {
         ProfitUpgradeLevels[id] += count;
     }
     else
     {
         ProfitUpgradeLevels.Add(id, count);
     }
 }
示例#3
0
 public override void LoadDefaults()
 {
     boughtCashUpgrades.Clear();
     boughtSecuritiesUpgrades.Clear();
     boughtCoinsUpgrades.Clear();
     upgradedGeneratorsIds.Clear();
     IsQuickBuyResearched = false;
     ProfitUpgradeLevels.Clear();
     SpeedUpgradeLevels.Clear();
     UpgradeCoinsScreenOpenedLastTime = 0;
     IsLoaded = true;
 }
示例#4
0
 private int GetProfitUpgradeLevel(int id)
 => ProfitUpgradeLevels.ContainsKey(id) ? ProfitUpgradeLevels[id] : 0;