本文整理汇总了C#中Server.GenericReader.ReadItem方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadItem方法的具体用法?C# GenericReader.ReadItem怎么用?C# GenericReader.ReadItem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadItem方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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();
}
}
示例2: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch( version )
{
default:
case 1:
{
_Blocker = (LOSBlocker)reader.ReadItem();
goto case 0;
}
case 0:
{
BoardGameControlItem = (BoardGameControlItem)reader.ReadItem();
Offset.X = reader.ReadInt();
Offset.Y = reader.ReadInt();
Offset.Z = reader.ReadInt();
break;
}
}
}
示例3: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Platform = reader.ReadItem() as PeerlessPlatform;
m_Key = reader.ReadItem();
if ( m_Platform == null )
Delete();
if ( m_Key != null )
{
m_Key.Delete();
m_Key = null;
}
break;
}
}
}
示例4: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
Boat = reader.ReadItem() as BaseBoat;
}
示例5: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_Galleon = reader.ReadItem() as BaseGalleon;
if(version == 0)
reader.ReadItem();
}
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Item = reader.ReadItem() as InternalItem;
m_Item2 = reader.ReadItem() as InternalItem2;
}
示例7: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_GardenGround = (GardenGround)reader.ReadItem();
m_GardenFence = (GardenFence)reader.ReadItem();
m_Player = (PlayerMobile)reader.ReadMobile();
m_GardenVerifier = (GardenVerifier)reader.ReadItem();
}
示例8: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Owner = (Mobile)reader.ReadMobile();
m_Tent = (TentAddon)reader.ReadItem();
m_Flap = (TentFlap)reader.ReadItem();
m_Chest = (SecureTentChest)reader.ReadItem();
}
示例9: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
Team = reader.ReadInt();
ProximityRange = reader.ReadInt();
Flag = reader.ReadItem() as CTFFlag;
m_gauntlet = reader.ReadItem() as CTFGauntlet;
m_HasFlag = reader.ReadBool();
}
示例10: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize( reader );
int version = reader.ReadInt();
light = reader.ReadItem() as LightSource;
}
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
/*int version = */reader.ReadInt();
Agujero = reader.ReadItem();
}
示例12: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
SelectedAddon = ( BaseAddon )reader.ReadItem();
}
示例13: PeerlessInstance
public PeerlessInstance( GenericReader reader )
{
m_Owner = reader.ReadItem<PeerlessPlatform>();
m_Light = reader.ReadItem();
m_Map = reader.ReadMap();
m_EntranceLocation = reader.ReadPoint3D();
m_BossSpawnLocation = reader.ReadPoint3D();
m_RegionBounds = reader.ReadRect2D();
Mobile boss = reader.ReadMobile();
if ( boss != null )
boss.Delete();
Initialize();
}
示例14: Deserialize
public override void Deserialize(GenericReader reader)
{
//base.SkipDeserialize( reader );
base.Deserialize( reader );
int version = reader.ReadInt();
/*
switch (version)
{
case 1:
m_Altar = reader.ReadItem() as CCSummoningAltar;
goto case 0;
case 0:
// Version 0
PointDest = reader.ReadPoint3D();
Name = reader.ReadString();
Active = reader.ReadBool();
m_OneSideArea = reader.ReadRect2D();
break;
}
*/
switch (version)
{
case 0:
m_Facing = (DoorFacing)reader.ReadInt();
m_Altar = reader.ReadItem() as CCSummoningAltar;
break;
}
}
示例15: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_stone = (CityManagementStone)reader.ReadItem();
}