本文整理汇总了C#中Server.GenericReader.ReadStrongItemList方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadStrongItemList方法的具体用法?C# GenericReader.ReadStrongItemList怎么用?C# GenericReader.ReadStrongItemList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadStrongItemList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VendorInventory
public VendorInventory( BaseHouse house, GenericReader reader )
{
m_House = house;
int version = reader.ReadEncodedInt();
m_Owner = reader.ReadMobile();
m_VendorName = reader.ReadString();
m_ShopName = reader.ReadString();
m_Items = reader.ReadStrongItemList();
m_Gold = reader.ReadInt();
m_ExpireTime = reader.ReadDeltaTime();
if ( m_Items.Count == 0 && m_Gold == 0 )
{
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( Delete ) );
}
else
{
TimeSpan delay = m_ExpireTime - DateTime.UtcNow;
m_ExpireTimer = new ExpireTimer( this, delay > TimeSpan.Zero ? delay : TimeSpan.Zero );
m_ExpireTimer.Start();
}
}
示例2: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
m_Keys = reader.ReadStrongItemList<Key>();
}
示例3: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
/*int version = */
reader.ReadInt();
m_DecoItems = reader.ReadStrongItemList();
}
示例4: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 0:
{
m_AddonComponents = reader.ReadStrongItemList<ScriptBasedBuildingAddon>();
break;
}
}
}
示例5: Deserialize
public static void Deserialize(GenericReader reader)
{
int version = reader.ReadInt();
switch (version)
{
case 0:
int count = reader.ReadInt();
for (int i = 0; i < count; i++)
{
List<Item> list = reader.ReadStrongItemList();
foreach (Item item in list)
if (item != null && !item.Deleted)
item.Delete();
}
break;
}
}
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Components = reader.ReadStrongItemList();
break;
}
}
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( this.Delete ) );
}
示例7: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Components = reader.ReadStrongItemList();
break;
}
}
Delete();
}
示例8: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 2:
{
m_Guardians = reader.ReadStrongMobileList();
m_Temporary = reader.ReadBool();
goto case 1;
}
case 1:
{
m_Owner = reader.ReadMobile();
goto case 0;
}
case 0:
{
m_Level = reader.ReadInt();
m_DeleteTime = reader.ReadDeltaTime();
m_Lifted = reader.ReadStrongItemList();
if ( version < 2 )
m_Guardians = new List<Mobile>();
break;
}
}
if ( !m_Temporary )
{
m_Timer = new DeleteTimer( this, m_DeleteTime );
m_Timer.Start();
}
else
{
Delete();
}
}
示例9: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
m_Charges = reader.ReadEncodedInt();
m_Receivers = reader.ReadStrongItemList<ReceiverCrystal>();
}
示例10: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
#region Mondain's Legacy
case 2:
m_Resource = (CraftResource) reader.ReadInt();
goto case 1;
#endregion
case 1:
case 0:
{
m_Components = reader.ReadStrongItemList<AddonComponent>();
break;
}
}
if ( version < 1 && Weight == 0 )
Weight = -1;
}
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Components = reader.ReadStrongItemList<AddonContainerComponent>();
m_Resource = (CraftResource) reader.ReadInt();
AddonComponent.ApplyLightTo( this );
}
示例12: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
m_Components = reader.ReadStrongItemList<PlagueBeastComponent>();
m_BrainHue = reader.ReadInt();
m_Opened = reader.ReadBool();
}
示例13: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize (reader);
int version = reader.ReadInt();
switch ( version )
{
case 5:
SafeZone = reader.ReadBool();
goto case 4;
case 4:
m_BoardWhiteHue = reader.ReadInt();
m_BoardBlackHue = reader.ReadInt();
m_BoardStairsHue = reader.ReadInt();
m_BoardWhiteTiles = reader.ReadStrongItemList();
m_BoardBlackTiles = reader.ReadStrongItemList();
m_BoardStairsTiles = reader.ReadStrongItemList();
goto case 3;
case 3:
m_OverrideMinorHue = reader.ReadBool();
m_AllowSpectators = reader.ReadBool();
goto case 2;
case 2 :
m_Orientation = (BoardOrientation) reader.ReadByte();
m_BlackMinorHue = reader.ReadInt();
m_WhiteMinorHue = reader.ReadInt();
goto case 1;
case 1:
m_ChessSet = ( ChessSet ) reader.ReadInt();
m_WhiteHue = reader.ReadInt();
m_BlackHue = reader.ReadInt();
m_AttackEffect = reader.ReadInt();
m_CaptureEffect = reader.ReadInt();
m_BoltOnDeath = reader.ReadBool();
goto case 0;
case 0:
m_Bounds = reader.ReadRect2D();
m_SquareWidth = reader.ReadInt();
m_BoardHeight = reader.ReadInt();
break;
}
}
示例14: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
case 0:
{
m_Components = reader.ReadStrongItemList<AddonComponent>();
break;
}
}
if ( version < 1 && Weight == 0 )
Weight = -1;
}
示例15: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_RegionBounds = reader.ReadRect2D();
m_Traps = reader.ReadStrongItemList<BaseTrap>();
goto case 0;
}
case 0:
{
if ( version < 1 )
{
m_Traps = new List<BaseTrap>();
m_RegionBounds = new Rectangle2D( X - 40, Y - 40, 80, 80 );
}
m_Creatures = reader.ReadStrongMobileList();
m_TypeName = reader.ReadString();
m_Door = reader.ReadItem<BaseDoor>(); ;
m_Addon = reader.ReadItem<BaseAddon>(); ;
m_Sequence = reader.ReadItem<GauntletSpawner>();
State = (GauntletSpawnerState)reader.ReadInt();
break;
}
}
}