本文整理汇总了C#中GenericReader.ReadItem方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadItem方法的具体用法?C# GenericReader.ReadItem怎么用?C# GenericReader.ReadItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadItem方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_House = reader.ReadItem() as BaseHouse;
goto case 0;
}
case 0:
{
m_Description = reader.ReadString();
m_Marked = reader.ReadBool();
m_Target = reader.ReadPoint3D();
m_TargetMap = reader.ReadMap();
CalculateHue();
break;
}
}
}
示例2: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Commodity = reader.ReadItem();
switch ( version )
{
case 0:
{
if (m_Commodity != null)
{
Hue = 0x592;
}
break;
}
}
if ( m_Commodity != null && !( m_Commodity is ICommodity ) ) //Apparently, there may be items out there with this. Funky.
{
Timer.DelayCall( TimeSpan.Zero, this.Delete );
}
}
示例3: Deserialize
public void Deserialize( GenericReader reader )
{
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_Flag = reader.ReadItem() as IGameFlag;
goto case 0;
}
case 0:
{
m_Members = reader.ReadMobileList();
m_Home = reader.ReadPoint3D();
m_FlagHome = reader.ReadPoint3D();
m_Map = reader.ReadMap();
m_Points = reader.ReadInt();
m_Name = reader.ReadString();
m_Hue = reader.ReadInt();
m_UId = reader.ReadInt();
m_Game = reader.ReadItem() as CTFGame;
break;
}
}
}
示例4: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
this.m_Item = reader.ReadItem() as InternalItem;
this.m_Item2 = reader.ReadItem() as InternalItem2;
}
示例5: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_TillerMan = reader.ReadItem() as NewTillerMan;
m_PPlank = reader.ReadItem() as NewPlank;
m_SPlank = reader.ReadItem() as NewPlank;
m_Hold = reader.ReadItem() as NewHold;
}
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_ChainedItem1 = reader.ReadItem();
m_ChainedItem2 = reader.ReadItem();
m_ChainedItem3 = reader.ReadItem();
m_ChainedItem4 = reader.ReadItem();
m_ChainedMobile1 = reader.ReadMobile();
m_ChainedMobile2 = reader.ReadMobile();
}
示例7: 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();
}
}
示例8: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch( version )
{
default:
{
int count = reader.ReadInt();
m_Components = new List<Item>( count );
for( int i = 0; i < count; ++i )
{
Item item = reader.ReadItem();
if( item != null )
m_Components.Add( item );
}
break;
}
}
cellblock = new HoldingCell( X, Y, Map );
}
示例9: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadEncodedInt();
this.m_Gland = reader.ReadItem();
}
示例10: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
this.m_Lantern = (Lantern)reader.ReadItem();
}
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
/*int version = */reader.ReadInt();
m_Item = reader.ReadItem() as InternalItem;
}
示例12: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
mLight = ( WearableLight )reader.ReadItem( );
IsLit = (bool) reader.ReadBool();
}
示例13: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
mate = reader.ReadItem() as LinkedBook;
}
示例14: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_House = reader.ReadItem() as BaseHouse;
}
示例15: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
this.m_Altar = reader.ReadItem() as PeerlessAltar;
}