当前位置: 首页>>代码示例>>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;未经允许,请勿转载。