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


C# GenericReader.ReadStrongMobileList方法代码示例

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


在下文中一共展示了GenericReader.ReadStrongMobileList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

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

            int version = reader.ReadEncodedInt();

            this.m_Spawned = reader.ReadStrongMobileList<Mobile>();
        }
开发者ID:FreeReign,项目名称:forkuo,代码行数:8,代码来源:SolenAntHole.cs

示例2: DuelInfo

		public DuelInfo(GenericReader reader)
		{
			int version = reader.ReadEncodedInt();

			switch (version)
			{
				case 0:
					{
						m_DuelTime = reader.ReadTimeSpan();
						m_AgainstList = reader.ReadStrongMobileList();
						break;
					}
			}
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:14,代码来源:DuelInfo.cs

示例3: Candidate

        public Candidate(GenericReader reader)
        {
            int version = reader.ReadEncodedInt();

            switch ( version )
            {
                case 1:
                    {
                        this.m_Mobile = reader.ReadMobile();

                        int count = reader.ReadEncodedInt();
                        this.m_Voters = new List<Voter>(count);

                        for (int i = 0; i < count; ++i)
                        {
                            Voter voter = new Voter(reader, this.m_Mobile);

                            if (voter.From != null)
                                this.m_Voters.Add(voter);
                        }

                        break;
                    }
                case 0:
                    {
                        this.m_Mobile = reader.ReadMobile();

                        List<Mobile> mobs = reader.ReadStrongMobileList();
                        this.m_Voters = new List<Voter>(mobs.Count);

                        for (int i = 0; i < mobs.Count; ++i)
                            this.m_Voters.Add(new Voter(mobs[i], this.m_Mobile));

                        break;
                    }
            }
        }
开发者ID:FreeReign,项目名称:forkuo,代码行数:37,代码来源:Election.cs

示例4: Deserialize

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

				int version = reader.ReadInt();

				m_Mobiles = reader.ReadStrongMobileList();

				for ( int i = 0; i < m_Mobiles.Count; ++i )
					m_Mobiles[i].Delete();

				m_Mobiles.Clear();

				for ( int i = Items.Count - 1; i >= 0; --i )
					if ( i < Items.Count )
						Items[i].Delete();

				if ( m_Cache == null )
					m_Cache = this;
				else
					Delete();

				m_Table = new Dictionary<Type, IEntity>();
			}
开发者ID:Grimoric,项目名称:RunUO.T2A,代码行数:24,代码来源:GenericBuy.cs

示例5: 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();
			}
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:44,代码来源:TreasureMapChest.cs

示例6: Deserialize


//.........这里部分代码省略.........
                            string str = reader.ReadString();
                            Type type = Type.GetType(str);

                            if( type != null )
                            {
                                m_arSpellDefense.Add(type);
                            }
                        }

                        m_FightMode = (FightMode)reader.ReadInt();
                        m_bControlled = reader.ReadBool();
                        m_ControlMaster = reader.ReadMobile();
                        m_ControlTarget = reader.ReadMobile();
                        m_ControlDest = reader.ReadPoint3D();
                        m_ControlOrder = (OrderType)reader.ReadInt();
                        m_dMinTameSkill = reader.ReadDouble();
                        m_bTamable = reader.ReadBool();
                        m_bSummoned = reader.ReadBool();

                        if( m_bSummoned )
                        {
                            m_SummonEnd = reader.ReadDeltaTime();
                            new UnsummonTimer(m_ControlMaster, this, m_SummonEnd - DateTime.Now).Start();
                        }

                        m_iControlSlots = reader.ReadInt();
                        m_Loyalty = reader.ReadInt();
                        m_CurrentWayPoint = reader.ReadItem() as WayPoint;
                        m_SummonMaster = reader.ReadMobile();
                        m_HitsMax = reader.ReadInt();
                        m_StamMax = reader.ReadInt();
                        m_ManaMax = reader.ReadInt();
                        m_DamageMin = reader.ReadInt();
                        m_DamageMax = reader.ReadInt();
                        m_PhysicalResistance = reader.ReadInt();
                        m_PhysicalDamage = reader.ReadInt();
                        m_FireResistance = reader.ReadInt();
                        m_FireDamage = reader.ReadInt();
                        m_ColdResistance = reader.ReadInt();
                        m_ColdDamage = reader.ReadInt();
                        m_PoisonResistance = reader.ReadInt();
                        m_PoisonDamage = reader.ReadInt();
                        m_EnergyResistance = reader.ReadInt();
                        m_EnergyDamage = reader.ReadInt();
                        m_Owners = reader.ReadStrongMobileList();
                        m_IsDeadPet = reader.ReadBool();
                        m_IsBonded = reader.ReadBool();
                        m_BondingBegin = reader.ReadDateTime();
                        m_OwnerAbandonTime = reader.ReadDateTime();
                        m_HasGeneratedLoot = reader.ReadBool();

                        bool hasFriends = reader.ReadBool();

                        if( hasFriends )
                            m_Friends = reader.ReadStrongMobileList();
                        else
                            m_Friends = new List<Mobile>();

                        m_RemoveIfUntamed = reader.ReadBool();
                        m_RemoveStep = reader.ReadInt();
                        _spawner = reader.ReadItem();
                        _spawnerHome = reader.ReadPoint3D();

                        break;
                    }
            }

            double activeSpeed = m_dActiveSpeed;
            double passiveSpeed = m_dPassiveSpeed;

            SpeedInfo.GetSpeeds(this, ref activeSpeed, ref passiveSpeed);

            bool isStandardActive = false;
            for( int i = 0; !isStandardActive && i < m_StandardActiveSpeeds.Length; ++i )
                isStandardActive = (m_dActiveSpeed == m_StandardActiveSpeeds[i]);

            bool isStandardPassive = false;
            for( int i = 0; !isStandardPassive && i < m_StandardPassiveSpeeds.Length; ++i )
                isStandardPassive = (m_dPassiveSpeed == m_StandardPassiveSpeeds[i]);

            if( isStandardActive && m_dCurrentSpeed == m_dActiveSpeed )
                m_dCurrentSpeed = activeSpeed;
            else if( isStandardPassive && m_dCurrentSpeed == m_dPassiveSpeed )
                m_dCurrentSpeed = passiveSpeed;

            if( isStandardActive )
                m_dActiveSpeed = activeSpeed;

            if( isStandardPassive )
                m_dPassiveSpeed = passiveSpeed;

            if( Core.AOS && NameHue == 0x35 )
                NameHue = -1;

            CheckStatTimers();

            ChangeAIType(m_CurrentAI);

            AddFollowers();
        }
开发者ID:ITLongwell,项目名称:Ulmeta,代码行数:101,代码来源:BaseCreature.cs

示例7: 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;
				}
			}
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:36,代码来源:GauntletSpawner.cs

示例8: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                    {
                        this.m_Items = reader.ReadStrongItemList();
                        this.m_Mobiles = reader.ReadStrongMobileList();
                        this.m_DecayTime = reader.ReadDeltaTime();

                        this.RefreshDecay(false);

                        break;
                    }
            }
        }
开发者ID:FreeReign,项目名称:forkuo,代码行数:20,代码来源:BaseCamp.cs

示例9: Deserialize

        public virtual void Deserialize(GenericReader reader)
        {
            int version = reader.ReadInt();

            switch (version)
            {
                case 2:
                    {
                        goto case 1;
                    }
                case 1:
                    {
                        m_Players = reader.ReadStrongMobileList();
                        m_Name = reader.ReadString();
                        m_Hue = reader.ReadInt();
                        m_Score = reader.ReadInt();
                        m_Home = reader.ReadPoint3D();
                        m_HomeMap = reader.ReadMap();
                        m_TeamGateLocation = reader.ReadPoint3D();
                        m_TeamGateMap = reader.ReadMap();
                        break;
                    }
            }
            if(m_Moongate != null)
                m_Moongate.Team = this;
        }
开发者ID:FreeReign,项目名称:imaginenation,代码行数:26,代码来源:BaseGameTeam.cs

示例10: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            m_Spawns = reader.ReadStrongMobileList();
            m_Items = reader.ReadStrongItemList();
            m_DeleteTime = reader.ReadDeltaTime();
        }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:9,代码来源:GhostShip.cs

示例11: Deserialize

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

            int version = reader.ReadInt();

            switch (version)
            {
                case 0:
                {
                    m_TrueForm = reader.ReadBool();
                    m_GateItem = reader.ReadItem();
                    m_Spirits = reader.ReadStrongMobileList<DragonSpirit>();

                    m_Timer = new TeleportTimer(this);
                    m_Timer.Start();

                    break;
                }
            }
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:21,代码来源:Peddrenth.cs

示例12: Deserialize

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

			int version = reader.ReadInt();

			m_Owner = (Mobile)reader.ReadMobile();
			m_Friends = reader.ReadStrongMobileList();
		}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:9,代码来源:SecureTentChest.cs

示例13: InternalLoad

		private static void InternalLoad(GenericReader reader)
		{
			int version = reader.ReadEncodedInt();

			switch (version)
			{
				case 1:
					{
						m_Enabled = reader.ReadBool();
						m_Instance.m_DuelLengthInSeconds = reader.ReadEncodedInt();
						m_Instance.m_MaxDistance = reader.ReadEncodedInt();
						goto case 0;
					}
				case 0:
					{
						int count = reader.ReadEncodedInt();

						for (int i = 0; i < count; i++)
						{
							Serial serial = (Serial)reader.ReadInt();
							DuelPoints points = new DuelPoints(reader);
							m_PointsTable.Add(serial, points);
						}

						m_DeclineDuelList = reader.ReadStrongMobileList();

						break;
					}
			}
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:30,代码来源:DuelController.cs

示例14: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();
            reader.ReadInt();
            AffectedMobiles = reader.ReadStrongMobileList();

            for (int i = 0; i < AffectedMobiles.Count; i++)
                if (AffectedMobiles[i] != null)
                    AffectedMobiles.Clear();
        }
开发者ID:jasegiffin,项目名称:ServUO,代码行数:11,代码来源:Medusa.cs

示例15: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 8:
                    {
                        m_IDList = reader.ReadStrongMobileList();
                        goto case 5;
                    }
                case 7:
                case 6:
                case 5:
                {
                    SaveFlag flags = (SaveFlag)reader.ReadEncodedInt();

                    if ( GetSaveFlag( flags, SaveFlag.Attributes ) )
                        m_AosAttributes = new AosAttributes( this, reader );
                    else
                        m_AosAttributes = new AosAttributes( this );

                    if ( GetSaveFlag( flags, SaveFlag.ArmorAttributes ) )
                        m_AosArmorAttributes = new AosArmorAttributes( this, reader );
                    else
                        m_AosArmorAttributes = new AosArmorAttributes( this );

                    if ( GetSaveFlag( flags, SaveFlag.PhysicalBonus ) )
                        m_PhysicalBonus = reader.ReadEncodedInt();

                    if ( GetSaveFlag( flags, SaveFlag.FireBonus ) )
                        m_FireBonus = reader.ReadEncodedInt();

                    if ( GetSaveFlag( flags, SaveFlag.ColdBonus ) )
                        m_ColdBonus = reader.ReadEncodedInt();

                    if ( GetSaveFlag( flags, SaveFlag.PoisonBonus ) )
                        m_PoisonBonus = reader.ReadEncodedInt();

                    if ( GetSaveFlag( flags, SaveFlag.EnergyBonus ) )
                        m_EnergyBonus = reader.ReadEncodedInt();

                    if ( GetSaveFlag( flags, SaveFlag.Identified ) )
                        m_Identified = ( version >= 7 || reader.ReadBool() );

                    if ( GetSaveFlag( flags, SaveFlag.MaxHitPoints ) )
                        m_MaxHitPoints = reader.ReadEncodedInt();

                    if ( GetSaveFlag( flags, SaveFlag.HitPoints ) )
                        m_HitPoints = reader.ReadEncodedInt();

                    if ( GetSaveFlag( flags, SaveFlag.Crafter ) )
                        m_Crafter = reader.ReadMobile();

                    if ( GetSaveFlag( flags, SaveFlag.Quality ) )
                        m_Quality = (ArmorQuality)reader.ReadEncodedInt();
                    else
                        m_Quality = ArmorQuality.Regular;

                    if ( version == 5 && m_Quality == ArmorQuality.Low )
                        m_Quality = ArmorQuality.Regular;

                    if ( GetSaveFlag( flags, SaveFlag.Durability ) )
                    {
                        m_Durability = (ArmorDurabilityLevel)reader.ReadEncodedInt();

                        if ( m_Durability > ArmorDurabilityLevel.Indestructible )
                            m_Durability = ArmorDurabilityLevel.Durable;
                    }

                    if ( GetSaveFlag( flags, SaveFlag.Protection ) )
                    {
                        m_Protection = (ArmorProtectionLevel)reader.ReadEncodedInt();

                        if ( m_Protection > ArmorProtectionLevel.Invulnerability )
                            m_Protection = ArmorProtectionLevel.Defense;
                    }

                    if ( GetSaveFlag( flags, SaveFlag.Resource ) )
                        m_Resource = (CraftResource)reader.ReadEncodedInt();
                    else
                        m_Resource = DefaultResource;

                    if ( m_Resource == CraftResource.None )
                        m_Resource = DefaultResource;

                    if ( GetSaveFlag( flags, SaveFlag.BaseArmor ) )
                        m_ArmorBase = reader.ReadEncodedInt();
                    else
                        m_ArmorBase = -1;

                    if ( GetSaveFlag( flags, SaveFlag.StrBonus ) )
                        m_StrBonus = reader.ReadEncodedInt();
                    else
                        m_StrBonus = -1;

                    if ( GetSaveFlag( flags, SaveFlag.DexBonus ) )
                        m_DexBonus = reader.ReadEncodedInt();
//.........这里部分代码省略.........
开发者ID:Godkong,项目名称:Origins,代码行数:101,代码来源:BaseArmor.cs


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