当前位置: 首页>>代码示例>>C#>>正文


C# GenericReader.ReadMobile方法代码示例

本文整理汇总了C#中Server.GenericReader.ReadMobile方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadMobile方法的具体用法?C# GenericReader.ReadMobile怎么用?C# GenericReader.ReadMobile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Server.GenericReader的用法示例。


在下文中一共展示了GenericReader.ReadMobile方法的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();
            }
        }
开发者ID:nathanvy,项目名称:runuo,代码行数:26,代码来源:VendorInventory.cs

示例2: Deserialize

 public override void Deserialize(GenericReader reader)
 {
     base.Deserialize(reader);
     int version = reader.ReadInt();
     m_CaughtBy = reader.ReadMobile();
     m_DateCaught = reader.ReadDateTime();
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:RareFish.cs

示例3: Deserialize

 public override void Deserialize(GenericReader reader)
 {
     base.Deserialize(reader);
     int version = reader.ReadInt();
     m_Taken = (PlayerMobile)reader.ReadMobile();
     m_From = (PlayerMobile)reader.ReadMobile();
 }
开发者ID:nick12344356,项目名称:The-Basement,代码行数:7,代码来源:FieldHead.cs

示例4: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize(reader);
			int version = reader.ReadInt();
			m_Mobile = reader.ReadMobile();
			m_Hitch = reader.ReadMobile();
			m_MCannon = (MovableCannon)reader.ReadItem();
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:8,代码来源:FireableCannon.cs

示例5: Deserialize

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            m_End = reader.ReadDeltaTime();

            m_From = reader.ReadMobile();
            m_To = reader.ReadMobile();

            m_Timer = new InternalTimer( this, m_End - DateTime.Now, m_From, m_To );
            m_Timer.Start();
        }
开发者ID:cynricthehun,项目名称:UOLegends,代码行数:14,代码来源:DuelWall.cs

示例6: Deserialize

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();
            m_Target = reader.ReadMobile();
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:7,代码来源:XmlTracking.cs

示例7: Deserialize

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();
            m_Creature = (BaseCreature)reader.ReadMobile();
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:7,代码来源:MiniaturePet.cs

示例8: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
                case 1:
                    {
                        m_Caster = (BaseCreature)reader.ReadMobile();

                        goto case 0;
                    }
                case 0:
                    {
                        m_End = reader.ReadDeltaTime();

                        m_Timer = new InternalTimer(this, TimeSpan.Zero, true, true);
                        m_Timer.Start();

                        break;
                    }
            }
        }
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:25,代码来源:AOE.cs

示例9: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch( version )
			{
				case 0:
				{
					m_Owner = reader.ReadMobile();
					m_Killer = reader.ReadMobile();
					m_TimeOfDeath = reader.ReadDeltaTime();
					break;
				}
			}
		}
开发者ID:greeduomacro,项目名称:GoUO,代码行数:17,代码来源:BountyHead.cs

示例10: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadEncodedInt();
			m_Previewer = reader.ReadMobile();
			m_PreviewID = reader.ReadInt();
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:8,代码来源:SurveyPreviewHouse.cs

示例11: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadEncodedInt();

			m_Statue = reader.ReadMobile() as CharacterStatue;
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:8,代码来源:CharacterStatuePlinth.cs

示例12: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadEncodedInt();
            if (reader.ReadBool()) m_Owner = reader.ReadMobile();

        }
开发者ID:suiy187,项目名称:runuocustom,代码行数:8,代码来源:MailboxEastAddon.cs

示例13: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
			
			m_Parrot = reader.ReadMobile() as PetParrot;
		}
开发者ID:PepeBiondi,项目名称:runsa,代码行数:8,代码来源:ParrotPerchAddon.cs

示例14: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
			
			m_Lord = (CityLandLord)reader.ReadMobile();
			m_Sign = (CivicSign)reader.ReadItem();
		}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:8,代码来源:CityMallToken.cs

示例15: Deserialize

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            mCaveTroll3 = ( CaveTroll3 )reader.ReadMobile( );
        }
开发者ID:zerodowned,项目名称:My-Stuff,代码行数:8,代码来源:ShameWall_3.cs


注:本文中的Server.GenericReader.ReadMobile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。