private void SetDefaults() { Armor = new ServerSetting(); ThirdPerson = new ServerSetting(); Tracers = new ServerSetting(); Nameplates = new ServerSetting(); Crosshairs = new ServerSetting(); DeathMessages = new ServerSetting(); Scores = new ServerSetting(); }
private static void CheckSetting(string serverName, string settingPattern, ServerSetting setting) { if(setting.Confirmed) { return; } const string valuePattern = @"\s*(?::|=|-)\s*(1|0|ON|OFF)"; string value; if(TryGetRegexGroup(serverName, string.Format(@"{0}{1}", settingPattern, valuePattern), RegexOptions.IgnoreCase, 1, out value)) { setting.Enabled = value.In("1", "ON"); setting.Confirmed = true; } }
private static void CheckSetting(string serverName, string settingPattern, ServerSetting setting) { if (setting.Confirmed) { return; } const string valuePattern = @"\s*(?::|=|-)\s*(1|0|ON|OFF)"; string value; if (TryGetRegexGroup(serverName, string.Format(@"{0}{1}", settingPattern, valuePattern), RegexOptions.IgnoreCase, 1, out value)) { setting.Enabled = value.In("1", "ON"); setting.Confirmed = true; } }
private void SetRegularDefaults() { Armor = new ServerSetting { Enabled = true }; ThirdPerson = new ServerSetting { Enabled = true }; Tracers = new ServerSetting { Enabled = false }; // Forum says it on, but game defaults say off. Nameplates = new ServerSetting { Enabled = true }; Crosshairs = new ServerSetting { Enabled = true }; DeathMessages = new ServerSetting { Enabled = true }; Scores = new ServerSetting { Enabled = true }; }
private void SetRecruitDefaults() { Armor = new ServerSetting { Enabled = true }; ThirdPerson = new ServerSetting { Enabled = true }; Tracers = new ServerSetting { Enabled = true }; Nameplates = new ServerSetting { Enabled = true }; Crosshairs = new ServerSetting { Enabled = true }; DeathMessages = new ServerSetting { Enabled = true }; Scores = new ServerSetting { Enabled = true }; }
private void SetExpertDefaults() { Armor = new ServerSetting { Enabled = false, Confirmed = true }; ThirdPerson = new ServerSetting { Enabled = false, Confirmed = true }; Tracers = new ServerSetting { Enabled = false, Confirmed = true }; Nameplates = new ServerSetting { Enabled = false, Confirmed = true }; Crosshairs = new ServerSetting { Enabled = false, Confirmed = true }; DeathMessages = new ServerSetting { Enabled = false }; Scores = new ServerSetting { Enabled = true }; // Game defaults to on. }
private void SetVeteranDefaults() { Armor = new ServerSetting {Enabled = false, Confirmed = true}; ThirdPerson = new ServerSetting {Enabled = true}; Tracers = new ServerSetting {Enabled = false}; Nameplates = new ServerSetting {Enabled = false, Confirmed = true}; Crosshairs = new ServerSetting {Enabled = false}; DeathMessages = new ServerSetting {Enabled = true}; Scores = new ServerSetting {Enabled = true}; // Game defaults to on. }
private void SetRegularDefaults() { Armor = new ServerSetting {Enabled = true}; ThirdPerson = new ServerSetting {Enabled = true}; Tracers = new ServerSetting {Enabled = false}; // Forum says it on, but game defaults say off. Nameplates = new ServerSetting {Enabled = true}; Crosshairs = new ServerSetting {Enabled = true}; DeathMessages = new ServerSetting {Enabled = true}; Scores = new ServerSetting {Enabled = true}; }
private void SetRecruitDefaults() { Armor = new ServerSetting {Enabled = true}; ThirdPerson = new ServerSetting {Enabled = true}; Tracers = new ServerSetting {Enabled = true}; Nameplates = new ServerSetting {Enabled = true}; Crosshairs = new ServerSetting {Enabled = true}; DeathMessages = new ServerSetting {Enabled = true}; Scores = new ServerSetting {Enabled = true}; }
private void SetDefaults() { Armor = new ServerSetting(); ThirdPerson = new ServerSetting(); Tracers = new ServerSetting(); Nameplates = new ServerSetting(); Crosshairs = new ServerSetting(); DeathMessages = new ServerSetting(); Scores = new ServerSetting(); }