本文整理汇总了C#中Server.GenericReader.ReadUInt32方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadUInt32方法的具体用法?C# GenericReader.ReadUInt32怎么用?C# GenericReader.ReadUInt32使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadUInt32方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
int count;
bool idocannc = false;
m_Region = new HouseRegion(this);
switch (version)
{
case 20:
{
m_NPCData = reader.ReadUInt32();
goto case 19;
}
case 19:
{
m_RestartDecay = reader.ReadTimeSpan();
goto case 18;
}
case 18:
{
m_Flags = (ImplFlags)reader.ReadUInt32();
goto case 17;
}
case 17:
{
m_UpgradeCosts = reader.ReadUInt32();
goto case 16;
}
case 16:
{
m_LockBoxData = reader.ReadUInt32();
goto case 15;
}
case 15:
{
m_SecurePremises = reader.ReadBool();
goto case 14;
}
case 14:
{
idocannc = reader.ReadBool();
goto case 13;
}
case 13:
{
m_DecayMinutesStored = reader.ReadDouble();
m_NeverDecay = reader.ReadBool();
goto case 11; //note, this isn't a mistake - we want to skip 12
}
case 12:
{
DateTime tempDT = reader.ReadDeltaTime();
//StructureDecayTime = reader.ReadDeltaTime();
m_DecayMinutesStored = (tempDT - DateTime.Now).TotalMinutes;
m_NeverDecay = reader.ReadBool();
goto case 11;
}
case 11:
{
m_MaxLockBoxes = reader.ReadInt();
m_LockBoxCount = reader.ReadInt();
goto case 9;
}
case 10: // just a signal for updates
case 9:
{
m_Visits = reader.ReadInt();
goto case 8;
}
case 8:
{
m_Price = reader.ReadInt();
goto case 7;
}
case 7:
{
m_Access = reader.ReadMobileList();
goto case 6;
}
case 6:
{
m_BuiltOn = reader.ReadDateTime();
m_LastTraded = reader.ReadDateTime();
goto case 5;
}
case 5: // just removed fields
case 4:
{
m_Addons = reader.ReadItemList();
goto case 3;
}
case 3:
{
count = reader.ReadInt();
//.........这里部分代码省略.........