public void SoftReset(int minerals = 0) { Units = UnitPool.Units.Where(x => x.Race == this.Race && x.Cost > 0).ToList(); Tier = 1; MineralsCurrent = minerals; Upgrades.Clear(); AbilityUpgrades.Clear(); LastSpawn = null; AbilityUpgradesAvailable.Clear(); UpgradesAvailable.Clear(); AbilitiesGlobalDeactivated.Clear(); AbilitiesSingleDeactivated.Clear(); Stats.Clear(); Gameloop = 0; }
public void Reset() { Race = UnitRace.Terran; Units = UnitPool.Units.Where(x => x.Race == UnitRace.Terran && x.Cost > 0).ToList(); Tier = 1; MineralsCurrent = 0; Upgrades.Clear(); AbilityUpgrades.Clear(); inGame = false; LastSpawn = null; AbilityUpgradesAvailable.Clear(); UpgradesAvailable.Clear(); AbilitiesGlobalDeactivated.Clear(); AbilitiesSingleDeactivated.Clear(); Game = null; Stats.Clear(); Gameloop = 0; }