當前位置: 首頁>>代碼示例>>C#>>正文


C# GenericWriter.WriteVersion方法代碼示例

本文整理匯總了C#中Server.GenericWriter.WriteVersion方法的典型用法代碼示例。如果您正苦於以下問題:C# GenericWriter.WriteVersion方法的具體用法?C# GenericWriter.WriteVersion怎麽用?C# GenericWriter.WriteVersion使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Server.GenericWriter的用法示例。


在下文中一共展示了GenericWriter.WriteVersion方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Serialize

		public override void Serialize(GenericWriter writer)
		{
			writer.WriteVersion(0);

			// Version 0
			writer.Write(_Enabled);
		}
開發者ID:Crome696,項目名稱:ServUO,代碼行數:7,代碼來源:BaseCore.cs

示例2: Serialize

		public override void Serialize(GenericWriter writer)
		{
			int version = writer.WriteVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(AutoDetectClient);
						writer.Write(ClientPath);
						writer.Write((byte)OldClientResponse);

						writer.Write(RequiredClientVersion.Major);
						writer.Write(RequiredClientVersion.Minor);
						writer.Write(RequiredClientVersion.Revision);
						writer.Write(RequiredClientVersion.Patch);

						writer.Write(AllowRegular);
						writer.Write(AllowUOTD);
						writer.Write(AllowGod);
						writer.Write(AgeLeniency);
						writer.Write(GameTimeLeniency);
						writer.Write(KickDelay);
					}
					break;
			}
		}
開發者ID:aj9251,項目名稱:ServUO,代碼行數:27,代碼來源:ClientSettings.cs

示例3: Serialize

		public void Serialize(GenericWriter writer)
		{
			writer.WriteVersion(0);

			// Version 0
			writer.Write(_Mobile);
			writer.Write(_Time);
		}
開發者ID:zerodowned,項目名稱:JustUO-merged-with-EC-Support,代碼行數:8,代碼來源:LastEditedBy.cs

示例4: Serialize

		public void Serialize(GenericWriter writer)
		{
			writer.WriteVersion(0);

			// Version 0
			writer.Write(_Map);
			writer.Write(_Location);
		}
開發者ID:jasegiffin,項目名稱:JustUO,代碼行數:8,代碼來源:Place.cs

示例5: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			writer.WriteVersion(0);

			// Version 0
			_ToolbarInfo.Serialize(writer);
		}
開發者ID:Ziden,項目名稱:ServUO-EC-Test-Fork,代碼行數:9,代碼來源:ToolbarModule.cs

示例6: Serialize

		public override void Serialize(GenericWriter writer)
		{
			int version = writer.WriteVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(AccountsPerIP);
						writer.Write(HousesPerAccount);
						writer.Write(MaxHousesPerAccount);
						writer.Write(AutoAccountCreation);
						writer.Write(RestrictDeletion);
						writer.Write(DeleteDelay);
						writer.Write((byte)PasswordProtection);
					}
					break;
			}
		}
開發者ID:jasegiffin,項目名稱:JustUO,代碼行數:19,代碼來源:AccountSettings.cs

示例7: Serialize

		public override void Serialize(GenericWriter writer)
		{
			int version = writer.WriteVersion(1);

			switch (version)
			{
				case 1:
					{
						writer.Write((int)MaxPlayerLevel);
						writer.Write((int)LowestStaffLevel);
						writer.Write((int)LowestOwnerLevel);
					}
					goto case 0;
				case 0:
					{
						writer.Write(ShardName);
						writer.Write(AutoDetect);
						writer.Write(Address);
						writer.Write(Port);
						writer.Write((byte)Expansion);
					}
					break;
			}
		}
開發者ID:jasegiffin,項目名稱:JustUO,代碼行數:24,代碼來源:GeneralSettings.cs

示例8: Serialize

		public void Serialize(GenericWriter writer)
		{
			writer.WriteVersion(0);

			writer.Write(_Font);
			writer.Write(_Phantom);
			writer.Write(_Stealth);
			writer.Write(_Reverse);
			writer.Write(_Lock);

			writer.Write(_Dimensions);

			writer.Write(_Entries.Count);

			foreach (string t in _Entries)
			{
				writer.Write(t);
			}

			writer.Write(_Skin);

			writer.Write(_Points.Count);

			foreach (Point3D t in _Points)
			{
				writer.Write(t);
			}
		}
開發者ID:jasegiffin,項目名稱:JustUO,代碼行數:28,代碼來源:ToolbarInfo.cs

示例9: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			writer.WriteVersion(0);
		}
開發者ID:Tukaramdas,項目名稱:ServUO-EC-Test-Fork,代碼行數:6,代碼來源:ToolbarCore.cs

示例10: Serialize

		public override void Serialize(GenericWriter writer)
		{
			writer.WriteVersion(0);

			// Version 0
			writer.Write(_LinkedMobile);
			writer.Write(_LinkedItem);
			writer.Write(_CreatedTime);
			writer.Write(_LastEditedTime);
		}
開發者ID:Crome696,項目名稱:ServUO,代碼行數:10,代碼來源:BaseModule.cs

示例11: Serialize

		public override void Serialize(GenericWriter writer)
		{
			int version = writer.WriteVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(SavesEnabled);
						writer.Write((byte)SaveAccessLevel);
						writer.Write((byte)_SaveStrategy.GetSaveType());
						writer.Write(AllowBackgroundWrite);
						writer.Write(SaveDelay);

						writer.Write(WarningDelays.Count);

						foreach (TimeSpan t in WarningDelays)
						{
							writer.Write(t);
						}

						writer.Write(NoIOHour);

						writer.Write(EnableEmergencyBackups);
						writer.Write(EmergencyBackupHour);
						writer.Write((byte)Compression);
					}
					break;
			}
		}
開發者ID:aj9251,項目名稱:ServUO,代碼行數:30,代碼來源:SaveSettings.cs


注:本文中的Server.GenericWriter.WriteVersion方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。