public static void EndGame() { Events.CallEndGame(); GameIsEnded = true; foreach (var ship in Roster.AllShips.Values) { ship.DeactivateAllAbilities(); } Board.Cleanup(); }
public static void EndGame() { Events.CallEndGame(); GameIsEnded = true; foreach (var ship in Roster.AllUnits.Values) { ship.DeactivateAllAbilities(); } DiceStatsTracker.Update(); Board.Cleanup(); }
public static void EndGame() { Events.CallEndGame(); GameIsEnded = true; foreach (var shipHolder in Roster.AllShips) { foreach (var ability in shipHolder.Value.PilotAbilities) { ability.DeactivateAbility(); } foreach (var upgrade in shipHolder.Value.UpgradeBar.GetUpgradesOnlyFaceup()) { foreach (var upgradeAbility in upgrade.UpgradeAbilities) { upgradeAbility.DeactivateAbility(); } } } Board.Cleanup(); }