本文整理匯總了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();
//.........這裏部分代碼省略.........