本文整理汇总了C#中Server.GenericReader.ReadInt方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadInt方法的具体用法?C# GenericReader.ReadInt怎么用?C# GenericReader.ReadInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Value = reader.ReadInt();
break;
}
}
if ( LootType != LootType.Cursed )
{
LootType = LootType.Cursed;
}
if ( Insured )
{
Insured = false;
}
}
示例2: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
int entryCount = reader.ReadInt();
for (int i = 0; i < entryCount; i++)
m_SystemEntries.Add(new SlayerSystemTracker(reader.ReadString(), reader.ReadInt(), reader.ReadString()));
if (Owner is Mobile)
{
Mobile player = (Mobile)Owner;
SlayerModule module = player.GetModule(typeof(SlayerModule)) as SlayerModule;
if (module == null)
module = new SlayerModule(player);
foreach (SlayerSystemTracker entry in m_SystemEntries)
module.SetSlayerCount(entry.SystemName, entry.SlayerCount);
Delete();
}
}
示例3: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Boat = reader.ReadItem() as BaseBoat;
m_Side = (PlankSide) reader.ReadInt();
m_Locked = reader.ReadBool();
m_KeyValue = reader.ReadUInt();
if ( m_Boat == null )
Delete();
break;
}
}
if ( IsOpen )
{
m_CloseTimer = new CloseTimer( this );
m_CloseTimer.Start();
}
}
示例4: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
case 0:
{
m_MultiID = reader.ReadInt();
m_Offset = reader.ReadPoint3D();
m_ShipName = reader.ReadString();
if ( version == 0 )
reader.ReadUInt();
break;
}
}
if ( LootType == LootType.Newbied )
LootType = LootType.Blessed;
if ( Weight == 0.0 )
Weight = 1.0;
}
示例5: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
org_Int = reader.ReadInt();
}
示例6: ExtendedDeserialize
public void ExtendedDeserialize( GenericReader reader, int parentVerison )
{
int version = reader.ReadInt();
switch (version)
{
case 3:
{
m_PopUpToggle = reader.ReadBool();
goto case 2;
}
case 2:
{
Percent = reader.ReadDouble();
m_LevelTitle = reader.ReadString();
m_PlayerLevel = reader.ReadInt();
goto case 1;
}
case 1:
{
m_Settings = new MobileSettings(this);
m_Settings.Deserialize(reader);
goto case 0;
}
case 0:
{
m_TravelTickets = reader.ReadInt();
break;
}
}
}
示例7: Deserialize
public void Deserialize( GenericReader reader )
{
int version = reader.ReadInt();
switch( version )
{
case 1:
{
m_SpellType = ScriptCompiler.FindTypeByName(reader.ReadString());
m_Icon = reader.ReadInt();
m_Location = reader.ReadPoint3D();
m_School = (School)reader.ReadInt();
break;
}
case 0:
{
int bad = reader.ReadInt();
m_Icon = reader.ReadInt();
m_Location = reader.ReadPoint3D();
m_SpellType = null;
m_School = School.Invalid;
break;
}
}
}
示例8: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 2:
{
m_Level = reader.ReadInt();
goto case 1;
}
case 1:
{
m_TargetMap = reader.ReadMap();
break;
}
case 0:
{
m_TargetMap = Map.Trammel;
break;
}
}
if ( version < 2 )
m_Level = GetRandomLevel();
}
示例9: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_UsesRemaining = reader.ReadInt();
}
示例10: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_StrengthBonus = reader.ReadInt();
}
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_Level = (SecureLevel) reader.ReadInt();
goto case 0;
}
case 0:
{
if ( version < 1 )
{
m_Level = SecureLevel.Anyone;
}
m_Facing = (DoorFacing) reader.ReadInt();
break;
}
}
}
示例12: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
Int32 version = reader.ReadInt();
Int32 entryCount = reader.ReadInt();
for (Int32 i = 0; i < entryCount; i++)
m_TitleEntries[reader.ReadString()] = reader.ReadInt();
if (Owner is Mobile)
{
Mobile player = (Mobile)Owner;
SlayerModule module = player.GetModule(typeof(SlayerModule)) as SlayerModule;
if (module == null)
module = new SlayerModule(player);
foreach (String title in m_TitleEntries.Keys)
module.SetSlayerCount(title, (Int32)m_TitleEntries[title]);
Delete();
}
}
示例13: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_portalID = reader.ReadInt();
}
示例14: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_Track = reader.ReadInt();
m_Song = (MusicName)reader.ReadInt();
}
示例15: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
int spellId = reader.ReadInt();
for ( int i = 0; i < SpellTriggerSpell.Definitions.Length; i++ )
{
SpellTriggerDef def = SpellTriggerSpell.Definitions[i];
if ( def.SpellId == spellId )
{
m_SpellDef = def;
break;
}
}
if ( m_SpellDef == null )
Delete();
break;
}
case 0:
{
Delete();
break;
}
}
}