示例#1
0
 private void SetDefaults()
 {
     Armor         = new ServerSetting();
     ThirdPerson   = new ServerSetting();
     Tracers       = new ServerSetting();
     Nameplates    = new ServerSetting();
     Crosshairs    = new ServerSetting();
     DeathMessages = new ServerSetting();
     Scores        = new ServerSetting();
 }
示例#2
0
		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.
		}
示例#3
0
		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 };
		}
示例#4
0
		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 };
		}
示例#5
0
		private void SetDefaults()
		{
			Armor = new ServerSetting();
			ThirdPerson = new ServerSetting();
			Tracers = new ServerSetting();
			Nameplates = new ServerSetting();
			Crosshairs = new ServerSetting();
			DeathMessages = new ServerSetting();
			Scores = new ServerSetting();
		}
示例#6
0
 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("0", "ON");
         setting.Confirmed = true;
     }
 }
示例#7
0
        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;
            }
        }
示例#8
0
 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
     };
 }
示例#9
0
 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
     };
 }
示例#10
0
 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.
 }