Beispiel #1
0
		public AutoPvPOptions()
			: base(typeof(AutoPvP))
		{
			Advanced = new AutoPvPAdvancedOptions();
			Statistics = new AutoPvPStatistics();
			ExecuteCommands = new AutoPvPExecuteCommands();
		}
Beispiel #2
0
 public AutoPvPOptions()
     : base(typeof(AutoPvP))
 {
     Advanced        = new AutoPvPAdvancedOptions();
     Statistics      = new AutoPvPStatistics();
     ExecuteCommands = new AutoPvPExecuteCommands();
 }
Beispiel #3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.GetVersion();

            switch (version)
            {
            case 0:
            {
                reader.ReadBlock(r => Advanced   = r.ReadTypeCreate <AutoPvPAdvancedOptions>(r) ?? new AutoPvPAdvancedOptions(r));
                reader.ReadBlock(r => Statistics = r.ReadTypeCreate <AutoPvPStatistics>(r) ?? new AutoPvPStatistics(r));
                reader.ReadBlock(
                    r => ExecuteCommands = r.ReadTypeCreate <AutoPvPExecuteCommands>(r) ?? new AutoPvPExecuteCommands(r));
            }
            break;
            }
        }
Beispiel #4
0
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.GetVersion();

			switch (version)
			{
				case 0:
					{
						reader.ReadBlock(
							() => { Advanced = reader.ReadTypeCreate<AutoPvPAdvancedOptions>(reader) ?? new AutoPvPAdvancedOptions(reader); });

						reader.ReadBlock(
							() => { Statistics = reader.ReadTypeCreate<AutoPvPStatistics>(reader) ?? new AutoPvPStatistics(reader); });

						reader.ReadBlock(
							() =>
							{ ExecuteCommands = reader.ReadTypeCreate<AutoPvPExecuteCommands>(reader) ?? new AutoPvPExecuteCommands(reader); });
					}
					break;
			}
		}