public override void ResetByPlanets() { boughtCashUpgrades.Clear(); boughtSecuritiesUpgrades.Clear(); upgradedGeneratorsIds.Clear(); ProfitUpgradeLevels.Clear(); SpeedUpgradeLevels.Clear(); IsLoaded = true; }
private void AddSpeedUpgradeLevel(int id, int count) { if (SpeedUpgradeLevels.ContainsKey(id)) { SpeedUpgradeLevels[id] += count; } else { SpeedUpgradeLevels.Add(id, count); } }
public override void LoadDefaults() { boughtCashUpgrades.Clear(); boughtSecuritiesUpgrades.Clear(); boughtCoinsUpgrades.Clear(); upgradedGeneratorsIds.Clear(); IsQuickBuyResearched = false; ProfitUpgradeLevels.Clear(); SpeedUpgradeLevels.Clear(); UpgradeCoinsScreenOpenedLastTime = 0; IsLoaded = true; }
private int GetSpeedUpgradeLevel(int id) => SpeedUpgradeLevels.ContainsKey(id) ? SpeedUpgradeLevels[id] : 0;