public BFBC2Client(FrostbiteConnection connection) : base(connection) { #region Map list functions ResponseDelegates.Add("admin.getPlaylist", DispatchAdminGetPlaylistResponse); ResponseDelegates.Add("admin.setPlaylist", DispatchAdminSetPlaylistResponse); // Note: These delegates point to methods in FrostbiteClient. ResponseDelegates.Add("admin.runNextLevel", DispatchAdminRunNextRoundResponse); ResponseDelegates.Add("admin.currentLevel", DispatchAdminCurrentLevelResponse); #endregion //this.m_responseDelegates.Add("vars.rankLimit", this.DispatchVarsRankLimitResponse); // Note: These delegates point to methods in FrostbiteClient. ResponseDelegates.Add("reservedSlots.configFile", DispatchReservedSlotsConfigFileResponse); ResponseDelegates.Add("reservedSlots.load", DispatchReservedSlotsLoadResponse); ResponseDelegates.Add("reservedSlots.save", DispatchReservedSlotsSaveResponse); ResponseDelegates.Add("reservedSlots.addPlayer", DispatchReservedSlotsAddPlayerResponse); ResponseDelegates.Add("reservedSlots.removePlayer", DispatchReservedSlotsRemovePlayerResponse); ResponseDelegates.Add("reservedSlots.clear", DispatchReservedSlotsClearResponse); ResponseDelegates.Add("reservedSlots.list", DispatchReservedSlotsListResponse); GetPacketsPattern = new Regex(GetPacketsPattern + "|^admin.getPlaylist|^reservedSlots.list", RegexOptions.Compiled); }
public MoHClient(FrostbiteConnection connection) : base(connection) { ResponseDelegates.Add("vars.clanTeams", DispatchVarsClanTeamsResponse); ResponseDelegates.Add("vars.noCrosshairs", DispatchVarsNoCrosshairsResponse); ResponseDelegates.Add("vars.realisticHealth", DispatchVarsRealisticHealthResponse); ResponseDelegates.Add("vars.noUnlocks", DispatchVarsNoUnlocksResponse); ResponseDelegates.Add("vars.skillLimit", DispatchVarsSkillLimitResponse); ResponseDelegates.Add("vars.noAmmoPickups", DispatchVarsNoAmmoPickupsResponse); ResponseDelegates.Add("vars.tdmScoreCounterMaxScore", DispatchVarsTdmScoreCounterMaxScoreResponse); // Preround vars ResponseDelegates.Add("vars.preRoundLimit", DispatchVarsPreRoundLimitResponse); ResponseDelegates.Add("admin.roundStartTimerEnabled", DispatchAdminRoundStartTimerEnabledResponse); ResponseDelegates.Add("vars.roundStartTimerDelay", DispatchVarsRoundStartTimerDelayResponse); ResponseDelegates.Add("vars.roundStartTimerPlayersLimit", DispatchVarsRoundStartTimerPlayersLimitResponse); // New map functions? ResponseDelegates.Add("admin.stopPreRound", DispatchAdminStopPreRoundResponse); // Note: These delegates point to methods in FrostbiteClient. ResponseDelegates.Add("reservedSpectateSlots.configFile", DispatchReservedSlotsConfigFileResponse); ResponseDelegates.Add("reservedSpectateSlots.load", DispatchReservedSlotsLoadResponse); ResponseDelegates.Add("reservedSpectateSlots.save", DispatchReservedSlotsSaveResponse); ResponseDelegates.Add("reservedSpectateSlots.addPlayer", DispatchReservedSlotsAddPlayerResponse); ResponseDelegates.Add("reservedSpectateSlots.removePlayer", DispatchReservedSlotsRemovePlayerResponse); ResponseDelegates.Add("reservedSpectateSlots.clear", DispatchReservedSlotsClearResponse); ResponseDelegates.Add("reservedSpectateSlots.list", DispatchReservedSlotsListResponse); GetPacketsPattern = new Regex(GetPacketsPattern + "|^reservedSpectateSlots.list|^admin.roundStartTimerEnabled$|^admin.tdmScoreCounterMaxScore$", RegexOptions.Compiled); }
public BFHLClient(FrostbiteConnection connection) : base(connection) { ResponseDelegates.Add("vars.roundStartReadyPlayersNeeded", DispatchVarsRoundStartReadyPlayersNeeded); // need to review vars.requireReadyPlayersToStart / vars.roundStartReadyPlayersPercent // vars.TeamSwitchCooldown // vars.teamSwitchingAllowed // vars.roundsToWin // undocumented vars.killFeed ResponseDelegates.Add("vars.hacker", DispatchVarsCommander); }