當前位置: 首頁>>代碼示例>>C#>>正文


C# GenericReader.ReadStrongItemList方法代碼示例

本文整理匯總了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();
            }
        }
開發者ID:nathanvy,項目名稱:runuo,代碼行數:26,代碼來源:VendorInventory.cs

示例2: Deserialize

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

            int version = reader.ReadEncodedInt();

            m_Keys = reader.ReadStrongItemList<Key>();
        }
開發者ID:Godkong,項目名稱:Origins,代碼行數:8,代碼來源:KeyRing.cs

示例3: Deserialize

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

            /*int version = */
            reader.ReadInt();

            m_DecoItems = reader.ReadStrongItemList();
        }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:9,代碼來源:PitChampionSpawn.cs

示例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;
                    }
            }
        }
開發者ID:kamronbatman,項目名稱:Defiance-AOS-Pre-2012,代碼行數:15,代碼來源:ScriptBasedAddonBuilding.cs

示例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;
     }
 }
開發者ID:kamronbatman,項目名稱:Defiance-AOS-Pre-2012,代碼行數:17,代碼來源:SunnySystem.cs

示例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 ) );
        }
開發者ID:nathanvy,項目名稱:runuo,代碼行數:18,代碼來源:PreviewHouse.cs

示例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();
        }
開發者ID:Godkong,項目名稱:RunUO,代碼行數:18,代碼來源:PreviewHouse.cs

示例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();
			}
		}
開發者ID:suiy187,項目名稱:runuocustom,代碼行數:44,代碼來源:TreasureMapChest.cs

示例9: Deserialize

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

			int version = reader.ReadEncodedInt();

			m_Charges = reader.ReadEncodedInt();
			m_Receivers = reader.ReadStrongItemList<ReceiverCrystal>();
		}
開發者ID:nathanvy,項目名稱:runuo,代碼行數:9,代碼來源:CommunicationCrystals.cs

示例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;
		}
開發者ID:ITLongwell,項目名稱:mondains-legacy,代碼行數:25,代碼來源:BaseAddon.cs

示例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 );
		}
開發者ID:jackuoll,項目名稱:Pre-AOS-RunUO,代碼行數:11,代碼來源:BaseAddonContainer.cs

示例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();
        }
開發者ID:kamronbatman,項目名稱:Defiance-AOS-Pre-2012,代碼行數:10,代碼來源:PlagueBeastOrgans.cs

示例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;
			}
		}
開發者ID:FreeReign,項目名稱:imaginenation,代碼行數:54,代碼來源:ChessControl.cs

示例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;
        }
開發者ID:zerodowned,項目名稱:DimensionsNewAge,代碼行數:19,代碼來源:BaseAddon.cs

示例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;
				}
			}
		}
開發者ID:Godkong,項目名稱:Origins,代碼行數:36,代碼來源:GauntletSpawner.cs


注:本文中的Server.GenericReader.ReadStrongItemList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。