public void Remove(GameRuleBase gameRule) { _gameRules.Remove(gameRule.GameRule); }
public Briefing(GameRuleBase gameRule) { GameRule = gameRule; }
public void OnJoin(GameRuleBase game) { statistics = null; FriendlyMode = !game.CountMatch; if (FriendlyMode) { switch (game.GameRule) { case GameRule.BattleRoyal: statistics = new BRStats(Player); break; case GameRule.Captain: statistics = new CPTStats(Player); break; case GameRule.Chaser: statistics = new ChaserStats(Player); break; case GameRule.Deathmatch: statistics = new DMStats(Player); break; case GameRule.Touchdown: statistics = new TDStats(Player); break; case GameRule.Siege: statistics = new SiegeStats(Player); break; } } else { switch (game.GameRule) { case GameRule.BattleRoyal: statistics = BattleRoyal; break; case GameRule.Captain: statistics = Captain; break; case GameRule.Chaser: statistics = Chaser; break; case GameRule.Deathmatch: statistics = DeathMatch; break; case GameRule.Touchdown: statistics = TouchDown; break; case GameRule.Siege: statistics = Siege; break; } } }