示例#1
0
 public override void ResetByPlanets()
 {
     boughtCashUpgrades.Clear();
     boughtSecuritiesUpgrades.Clear();
     upgradedGeneratorsIds.Clear();
     ProfitUpgradeLevels.Clear();
     SpeedUpgradeLevels.Clear();
     IsLoaded = true;
 }
示例#2
0
 private void AddSpeedUpgradeLevel(int id, int count)
 {
     if (SpeedUpgradeLevels.ContainsKey(id))
     {
         SpeedUpgradeLevels[id] += count;
     }
     else
     {
         SpeedUpgradeLevels.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 GetSpeedUpgradeLevel(int id)
 => SpeedUpgradeLevels.ContainsKey(id) ? SpeedUpgradeLevels[id] : 0;