當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。