本文整理汇总了C#中GenericReader.ReadMobile方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadMobile方法的具体用法?C# GenericReader.ReadMobile怎么用?C# GenericReader.ReadMobile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadMobile方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Player = (PlayerMobile)reader.ReadMobile();
}
示例2: VendorInventory
public VendorInventory(BaseHouse house, GenericReader reader)
{
this.m_House = house;
int version = reader.ReadEncodedInt();
this.m_Owner = reader.ReadMobile();
this.m_VendorName = reader.ReadString();
this.m_ShopName = reader.ReadString();
this.m_Items = reader.ReadStrongItemList();
this.m_Gold = reader.ReadInt();
this.m_ExpireTime = reader.ReadDeltaTime();
if (this.m_Items.Count == 0 && this.m_Gold == 0)
{
Timer.DelayCall(TimeSpan.Zero, new TimerCallback(Delete));
}
else
{
TimeSpan delay = this.m_ExpireTime - DateTime.Now;
this.m_ExpireTimer = new ExpireTimer(this, delay > TimeSpan.Zero ? delay : TimeSpan.Zero);
this.m_ExpireTimer.Start();
}
}
示例3: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_BondOwner = reader.ReadMobile();
goto case 0;
}
case 0:
{
m_link = (BaseCreature)reader.ReadMobile();
m_toDeletePet = reader.ReadBool();
break;
}
}
if ( m_link != null )
m_link.IsStabled = true;
}
示例4: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_To = reader.ReadMobile();
m_From = reader.ReadMobile();
}
示例5: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadEncodedInt();
m_Owner = reader.ReadMobile();
}
示例6: CraftContext
public CraftContext(GenericReader reader)
{
int version = reader.ReadInt();
m_Items = new List<CraftItem>();
Owner = reader.ReadMobile();
int sysIndex = reader.ReadInt();
m_LastResourceIndex = reader.ReadInt();
m_LastResourceIndex2 = reader.ReadInt();
m_LastGroupIndex = reader.ReadInt();
m_DoNotColor = reader.ReadBool();
m_MarkOption = (CraftMarkOption)reader.ReadInt();
m_QuestOption = (CraftQuestOption)reader.ReadInt();
m_MakeTotal = reader.ReadInt();
System = GetCraftSystem(sysIndex);
if (System != null && Owner != null)
{
System.AddContext(Owner, this);
Contexts.Add(this);
}
}
示例7: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 0:
{
m_Owner = reader.ReadMobile();
m_Open = reader.ReadBool();
if (m_Owner == null)
{
Delete();
}
break;
}
}
if (ItemID == 0xE41)
{
ItemID = 0xE7C;
}
}
示例8: Orders
public Orders( BaseFactionGuard guard, GenericReader reader )
{
m_Guard = guard;
int version = reader.ReadEncodedInt();
switch ( version )
{
case 1:
{
m_Follow = reader.ReadMobile();
goto case 0;
}
case 0:
{
int count = reader.ReadEncodedInt();
m_Reactions = new ArrayList( count );
for ( int i = 0; i < count; ++i )
m_Reactions.Add( new Reaction( reader ) );
m_Movement = (MovementType)reader.ReadEncodedInt();
break;
}
}
}
示例9: BOBSmallEntry
public BOBSmallEntry( GenericReader reader )
{
int version = reader.ReadEncodedInt();
switch ( version )
{
case 1:
{
m_Owner = reader.ReadMobile();
goto case 0;
}
case 0:
{
string type = reader.ReadString();
if ( type != null )
m_ItemType = ScriptCompiler.FindTypeByFullName( type );
m_RequireExceptional = reader.ReadBool();
m_DeedType = (BODType)reader.ReadEncodedInt();
m_Material = (BulkMaterialType)reader.ReadEncodedInt();
m_AmountCur = reader.ReadEncodedInt();
m_AmountMax = reader.ReadEncodedInt();
m_Number = reader.ReadEncodedInt();
m_Graphic = reader.ReadEncodedInt();
m_Price = reader.ReadEncodedInt();
break;
}
}
}
示例10: PlayerState
public PlayerState(GenericReader reader, Faction faction, List<PlayerState> owner)
{
this.m_Faction = faction;
this.m_Owner = owner;
int version = reader.ReadEncodedInt();
switch ( version )
{
case 1:
{
this.m_IsActive = reader.ReadBool();
this.m_LastHonorTime = reader.ReadDateTime();
goto case 0;
}
case 0:
{
this.m_Mobile = reader.ReadMobile();
this.m_KillPoints = reader.ReadEncodedInt();
this.m_MerchantTitle = (MerchantTitle)reader.ReadEncodedInt();
this.m_Leaving = reader.ReadDateTime();
break;
}
}
this.Attach();
}
示例11: Deserialize
public void Deserialize( GenericReader reader )
{
Points = reader.ReadInt();
Wins = reader.ReadInt();
Losses = reader.ReadInt();
Part = reader.ReadMobile();
}
示例12: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_StabledPet = reader.ReadMobile();
}
示例13: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
m_Placer = reader.ReadMobile();
goto case 0;
}
case 0:
{
int count = reader.ReadInt();
m_Components = new ArrayList( count );
for ( int i = 0; i < count; ++i )
{
Item item = reader.ReadItem();
if ( item != null )
m_Components.Add( item );
}
break;
}
}
}
示例14: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Owner = reader.ReadMobile();
m_Direction = Direction;
m_WayPoints = new ArrayList();
}
示例15: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_Parrot = reader.ReadMobile() as PetParrot;
}