当前位置: 首页>>代码示例>>C#>>正文


C# GenericReader.GetVersion方法代码示例

本文整理汇总了C#中Server.GenericReader.GetVersion方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.GetVersion方法的具体用法?C# GenericReader.GetVersion怎么用?C# GenericReader.GetVersion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Server.GenericReader的用法示例。


在下文中一共展示了GenericReader.GetVersion方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.GetVersion();

        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:StoneIngredients.cs

示例2: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.GetVersion();

			switch (version)
			{
				case 1:
					reader.ReadBlock(r => Misc = r.ReadTypeCreate<AutoPvPMiscOptions>(r) ?? new AutoPvPMiscOptions(r));
					goto case 0;
				case 0:
					{
						if (version == 0)
						{
							Misc = new AutoPvPMiscOptions();
						}

						reader.ReadBlock(r => Commands = r.ReadTypeCreate<AutoPvPCommandOptions>(r) ?? new AutoPvPCommandOptions(r));
						reader.ReadBlock(r => Profiles = r.ReadTypeCreate<AutoPvPProfileOptions>(r) ?? new AutoPvPProfileOptions(r));
						reader.ReadBlock(r => Seasons = r.ReadTypeCreate<AutoPvPSeasonOptions>(r) ?? new AutoPvPSeasonOptions(r));
					}
					break;
			}
		}
开发者ID:jasegiffin,项目名称:JustUO,代码行数:25,代码来源:AdvancedOpts.cs

示例3: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.GetVersion();

			switch (version)
			{
				case 1:
					Desc = reader.ReadString();
					goto case 0;
				case 0:
					{
						Type = reader.ReadType();
						Name = reader.ReadString();
						CanIgnore = reader.ReadBool();

						States = reader.ReadBlockDictionary(
							() =>
							{
								var state = new NotifySettingsState(this, reader);

								return new KeyValuePair<PlayerMobile, NotifySettingsState>(state.Owner, state);
							});
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:28,代码来源:Settings.cs

示例4: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			reader.GetVersion();

			_URL = reader.ReadString();
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:8,代码来源:LinkEntry.cs

示例5: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			reader.GetVersion();

			AccessPrefixes = new WorldChatAccessPrefixOptions(reader);

			ChatPrefix = reader.ReadChar();
			HistoryBuffer = reader.ReadByte();
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:11,代码来源:SystemOpts.cs

示例6: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			var version = reader.GetVersion();

			switch (version)
			{
				case 0:
					break;
			}
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:12,代码来源:Generic.cs

示例7: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.GetVersion();

			switch (version)
			{
				case 0:
					Hue = reader.ReadInt();
					break;
			}
		}
开发者ID:jasegiffin,项目名称:JustUO,代码行数:13,代码来源:HueOverride.cs

示例8: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			var version = reader.GetVersion();

			switch (version)
			{
				case 0:
					UseCategories = reader.ReadBool();
					break;
			}
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:13,代码来源:MiscOpts.cs

示例9: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			var version = reader.GetVersion();

			if (version > 0)
			{
				return;
			}

			IgnoreBlessed = true;
			IgnoreInsured = true;
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:14,代码来源:GeneralTrashHandler.cs

示例10: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.GetVersion();

			switch (version)
			{
				case 0:
					{
						IndexOnStart = reader.ReadBool();
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:15,代码来源:SystemOpts.cs

示例11: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			var version = reader.GetVersion();

			switch (version)
			{
				case 0:
				{
					Port = reader.ReadInt();
					MaxConnections = reader.ReadInt();
				}
					break;
			}
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:16,代码来源:SystemOpts.cs

示例12: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			var version = reader.GetVersion();

			switch (version)
			{
				case 0:
				{
					reader.ReadBlock(r => Loser = r.ReadTypeCreate<PvPReward>(r) ?? new PvPReward());
					reader.ReadBlock(r => Winner = r.ReadTypeCreate<PvPReward>(r) ?? new PvPReward());
				}
					break;
			}
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:16,代码来源:Rewards.cs

示例13: Deserialize

		private static bool Deserialize(GenericReader reader)
		{
			reader.GetVersion();

			reader.ReadBlockDictionary(
				r =>
				{
					var k = r.ReadAccount();
					var v = new TimeBoostProfile(r);

					return new KeyValuePair<IAccount, TimeBoostProfile>(k, v);
				},
				Profiles);

			return true;
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:16,代码来源:TimeBoosts_Init.cs

示例14: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.GetVersion();

			switch (version)
			{
				case 1:
					NameSharing = reader.ReadBool();
					goto case 0;
				case 0:
					IndexOnStart = reader.ReadBool();
					break;
			}
		}
开发者ID:jasegiffin,项目名称:JustUO,代码行数:16,代码来源:SystemOpts.cs

示例15: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			var version = reader.GetVersion();

			switch (version)
			{
				case 1:
					Persistence = new MySQLConnectionInfo(reader);
					goto case 0;
				case 0:
					MaxConnections = reader.ReadInt();
					break;
			}
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:16,代码来源:SystemOpts.cs


注:本文中的Server.GenericReader.GetVersion方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。