本文整理汇总了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);
}
示例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;
}
}
示例3: Serialize
public void Serialize(GenericWriter writer)
{
writer.WriteVersion(0);
// Version 0
writer.Write(_Mobile);
writer.Write(_Time);
}
示例4: Serialize
public void Serialize(GenericWriter writer)
{
writer.WriteVersion(0);
// Version 0
writer.Write(_Map);
writer.Write(_Location);
}
示例5: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.WriteVersion(0);
// Version 0
_ToolbarInfo.Serialize(writer);
}
示例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;
}
}
示例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;
}
}
示例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);
}
}
示例9: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.WriteVersion(0);
}
示例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);
}
示例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;
}
}