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


C# GenericReader.ReadItemList方法代码示例

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


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

示例1: Deserialize

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

            switch (version)
            {
                case 1:
                    {
                        reader.ReadItemList();
                        goto case 0;
                    }
                case 0:
                    {
                        reader.ReadBool();
                        reader.ReadItemList();
                        reader.ReadItemList();
                        reader.ReadItemList();
                        reader.ReadItemList();
                        reader.ReadItemList();
                        reader.ReadTimeSpan();
                        reader.ReadInt();
                        break;
                    }
            }
			DeleteAll();
			Delete();
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:28,代码来源:ChampionSpawnController.cs

示例2: Deserialize

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

			int version = reader.ReadInt();
			
			m_Villes = reader.ReadItemList();
		}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:8,代码来源:POMIStone.cs

示例3: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                    {
                        m_Components = reader.ReadItemList();

                        break;
                    }
            }

            Delete();
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:18,代码来源:PreviewHouse.cs

示例4: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
			switch ( version )
			{
				case 0:
				{
					m_Placer = reader.ReadMobile();
					m_Value = reader.ReadInt();
					m_Components = reader.ReadItemList();
					break;
				}
			}
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:15,代码来源:YardFountain.cs

示例5: Deserialize

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

            int version = reader.ReadInt();
            int count;
            bool loadedDynamicDecay = false;

            switch ( version )
            {
                case 15:
                    {
                        int stage = reader.ReadInt();

                        if (stage != -1)
                        {
                            this.m_CurrentStage = (DecayLevel)stage;
                            this.m_NextDecayStage = reader.ReadDateTime();
                            loadedDynamicDecay = true;
                        }

                        goto case 14;
                    }
                case 14:
                    {
                        this.m_RelativeBanLocation = reader.ReadPoint3D();
                        goto case 13;
                    }
                case 13: // removed ban location serialization
                case 12:
                    {
                        this.m_VendorRentalContracts = reader.ReadItemList();
                        this.m_InternalizedVendors = reader.ReadMobileList();

                        int relocatedCount = reader.ReadEncodedInt();
                        for (int i = 0; i < relocatedCount; i++)
                        {
                            Point3D relLocation = reader.ReadPoint3D();
                            IEntity entity = World.FindEntity(reader.ReadInt());

                            if (entity != null)
                                this.m_RelocatedEntities.Add(new RelocatedEntity(entity, relLocation));
                        }

                        int inventoryCount = reader.ReadEncodedInt();
                        for (int i = 0; i < inventoryCount; i++)
                        {
                            VendorInventory inventory = new VendorInventory(this, reader);
                            this.m_VendorInventories.Add(inventory);
                        }

                        goto case 11;
                    }
                case 11:
                    {
                        this.m_LastRefreshed = reader.ReadDateTime();
                        this.m_RestrictDecay = reader.ReadBool();
                        goto case 10;
                    }
                case 10: // just a signal for updates
                case 9:
                    {
                        this.m_Visits = reader.ReadInt();
                        goto case 8;
                    }
                case 8:
                    {
                        this.m_Price = reader.ReadInt();
                        goto case 7;
                    }
                case 7:
                    {
                        this.m_Access = reader.ReadMobileList();
                        goto case 6;
                    }
                case 6:
                    {
                        this.m_BuiltOn = reader.ReadDateTime();
                        this.m_LastTraded = reader.ReadDateTime();
                        goto case 5;
                    }
                case 5: // just removed fields
                case 4:
                    {
                        this.m_Addons = reader.ReadItemList();
                        goto case 3;
                    }
                case 3:
                    {
                        count = reader.ReadInt();
                        this.m_Secures = new ArrayList(count);

                        for (int i = 0; i < count; ++i)
                        {
                            SecureInfo info = new SecureInfo(reader);

                            if (info.Item != null)
                            {
                                info.Item.IsSecure = true;
                                this.m_Secures.Add(info);
//.........这里部分代码省略.........
开发者ID:Crylian,项目名称:ServUO,代码行数:101,代码来源:BaseHouse.cs

示例6: Deserialize


//.........这里部分代码省略.........
					{
						goto case 24;
					}
				case 24:
					{
						if (version < 27)
						{
							tmpSpawnListSize = reader.ReadInt();
						}
						tmpRestrictKillsToSubgroup = new ArrayList(tmpSpawnListSize);
						tmpClearOnAdvance = new ArrayList(tmpSpawnListSize);
						tmpMinDelay = new ArrayList(tmpSpawnListSize);
						tmpMaxDelay = new ArrayList(tmpSpawnListSize);
						tmpNextSpawn = new ArrayList(tmpSpawnListSize);
						for (int i = 0; i < tmpSpawnListSize; ++i)
						{
							bool restrictkills = reader.ReadBool();
							bool clearadvance = reader.ReadBool();
							double mind = reader.ReadDouble();
							double maxd = reader.ReadDouble();
							DateTime nextspawn = reader.ReadDeltaTime();

							tmpRestrictKillsToSubgroup.Add(restrictkills);
							tmpClearOnAdvance.Add(clearadvance);
							tmpMinDelay.Add(mind);
							tmpMaxDelay.Add(maxd);
							tmpNextSpawn.Add(nextspawn);
						}

						bool hasitems = reader.ReadBool();

						if (hasitems)
						{
							m_ShowBoundsItems = reader.ReadItemList();
						}
						goto case 23;
					}
				case 23:
					{
						IsInactivated = reader.ReadBool();
						SmartSpawning = reader.ReadBool();

						goto case 22;
					}
				case 22:
					{
						SkillTrigger = reader.ReadString(); // note this will also register the skill
						m_skill_that_triggered = (SkillName)reader.ReadInt();
						m_FreeRun = reader.ReadBool();
						m_mob_who_triggered = reader.ReadMobile();
						goto case 21;
					}
				case 21:
					{
						m_DespawnTime = reader.ReadTimeSpan();
						goto case 20;
					}
				case 20:
					{
						if (version < 24)
						{
							tmpSpawnListSize = reader.ReadInt();
						}
						tmpRequireSurface = new ArrayList(tmpSpawnListSize);
						for (int i = 0; i < tmpSpawnListSize; ++i)
						{
开发者ID:mtPrimo,项目名称:ServUO,代码行数:67,代码来源:XmlSpawner2.cs

示例7: Deserialize

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

			int version = reader.ReadInt();
			int count;

			switch ( version )
			{
				case 15:
				{
					goto case 14;
				}
				case 14:
				{
					m_RelativeBanLocation = reader.ReadPoint3D();
					goto case 13;
				}
				case 13: // removed ban location serialization
				case 12:
				{
					m_InternalizedVendors = reader.ReadMobileList();

					int inventoryCount = reader.ReadEncodedInt();
					for ( int i = 0; i < inventoryCount; i++ )
					{
						VendorInventory inventory = new VendorInventory( this, reader );
						m_VendorInventories.Add( inventory );
					}

					goto case 11;
				}
				case 11:
				{
					m_LastRefreshed = reader.ReadDateTime();
					m_RestrictDecay = reader.ReadBool();
					goto case 10;
				}
				case 10: // just a signal for updates
				case 9:
				{
					m_Visits = reader.ReadInt();
					goto case 8;
				}
				case 8:
				{
					m_Price = reader.ReadInt();
					goto case 7;
				}
				case 7:
				{
					m_Access = reader.ReadMobileList();
					goto case 6;
				}
				case 6:
				{
					m_BuiltOn = reader.ReadDateTime();
					goto case 5;
				}
				case 5: // just removed fields
				case 4:
				{
					m_Addons = reader.ReadItemList();
					goto case 3;
				}
				case 3:
				case 2:
				{
					m_Public = reader.ReadBool();
					goto case 1;
				}
				case 1:
				{
					if ( version < 13 )
						reader.ReadPoint3D(); // house ban location
					goto case 0;
				}
				case 0:
				{
					if ( version < 14 )
						m_RelativeBanLocation = this.BaseBanLocation;

					if ( version < 12 )
					{
						m_InternalizedVendors = new ArrayList();
					}

					if ( version < 4 )
						m_Addons = new ArrayList();

					if ( version < 7 )
						m_Access = new ArrayList();

					if ( version < 8 )
						m_Price = DefaultPrice;

					m_Owner = reader.ReadMobile();

					if ( version < 5 )
					{
//.........这里部分代码省略.........
开发者ID:Grimoric,项目名称:RunUO.T2A,代码行数:101,代码来源:BaseHouse.cs

示例8: Deserialize

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

			int version = reader.ReadInt();

			switch ( version ) 
			{ 
				case 1:
				{
					m_VilleRace = (VilleRaciale)reader.ReadByte();
					
					goto case 0;
				}

				case 0:
				{

					m_Citoyens = reader.ReadMobileList();
					m_Candidats = reader.ReadMobileList();
					m_HLL = reader.ReadMobileList();
					m_Gardes = reader.ReadMobileList();
					m_gardes_pnj = reader.ReadItemList();
					m_Maire = (PlayerMobile)reader.ReadMobile();
					m_Conseiller = (PlayerMobile)reader.ReadMobile();
					m_Ambassadeur = (PlayerMobile)reader.ReadMobile();
					m_Capitaine = (PlayerMobile)reader.ReadMobile();
					m_Pomi = (POMI)reader.ReadItem();	
					m_MaireCloak = (PomiCloak)reader.ReadItem();
					m_ConseillerCloak = (PomiCloak)reader.ReadItem();
					m_AmbassadeurCloak = (PomiCloak)reader.ReadItem();
					m_CapitaineCloak = (PomiCloak)reader.ReadItem();
					m_CapitaineBook = (CapitaineBook)reader.ReadItem();
					m_GardeCloak = reader.ReadItemList();
					m_Nom = reader.ReadString();
					m_Charte0 = reader.ReadString();
					m_Charte1 = reader.ReadString();
					m_Charte2 = reader.ReadString();
					m_Charte3 = reader.ReadString();
					m_Charte4 = reader.ReadString();
					m_Charte5 = reader.ReadString();
					m_Charte6 = reader.ReadString();
					m_Charte7 = reader.ReadString();
					m_Votants = reader.ReadMobileList();
					m_Elections = reader.ReadMobileList();
					m_Resultats = reader.ReadMobileList();
					m_EndDate = reader.ReadDateTime();
					m_ElecTimer = new ElectionTimer(this, m_EndDate - DateTime.Now);
					m_ElecTimer.Start();
					m_ElecDelay = reader.ReadTimeSpan();
					m_MaxDistance = reader.ReadInt();
					m_Allies = reader.ReadItemList();
					m_Paix = reader.ReadItemList();
					m_Guerre = reader.ReadItemList();
					m_Neutre = reader.ReadItemList();
					m_Box = (TownBox)reader.ReadItem();
					break;
				}
			}

	}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:61,代码来源:TownStone.cs

示例9: Deserialize

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

            switch (version)
            {
                case 1:
                    {
                        if (reader.ReadBool())
                        {
                            House = reader.ReadItem() as BaseHouse;
                        }
                        goto case 0;
                    }
                case 0:
                    {
                        Placer = reader.ReadMobile();
                        Price = reader.ReadInt();

                        Pieces = new List<YardPiece>();
                        foreach (YardPiece item in reader.ReadItemList())
                        {
                            Pieces.Add(item);
                        }
                        break;
                    }
            }

            if (House == null)
            {
                FindHouseOfPlacer();
                if (House == null)
                {
                    Refund();                    
                }
            }
        }
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:38,代码来源:YardItem.cs

示例10: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
				
					m_Teams = reader.ReadInt();
					
					Players = reader.ReadMobileList();
                    NpcPlayers = reader.ReadMobileList();
					m_Announcers = reader.ReadMobileList();
					
					m_WinnersPrizes = reader.ReadItemList();
					
					
					m_Team1Dest = reader.ReadPoint3D();
					m_Team2Dest = reader.ReadPoint3D();
					m_Team3Dest = reader.ReadPoint3D();
					m_Team4Dest = reader.ReadPoint3D();
					m_Exit1Dest = reader.ReadPoint3D();
					m_Exit2Dest = reader.ReadPoint3D();
					m_Exit3Dest = reader.ReadPoint3D();
					m_Exit4Dest = reader.ReadPoint3D();

					m_MapDest = reader.ReadMap();
                    m_Mod = (Mod)reader.ReadInt();

					m_Active = reader.ReadBool();
					m_Team1 = reader.ReadInt();
					m_Team2 = reader.ReadInt();
					m_Team3 = reader.ReadInt();
					m_Team4 = reader.ReadInt();
					
					m_Team1Hue = reader.ReadInt();
					m_Team2Hue = reader.ReadInt();
					m_Team3Hue = reader.ReadInt();
					m_Team4Hue = reader.ReadInt();
					
					m_Team1Name = reader.ReadString();
					m_Team2Name = reader.ReadString();
					m_Team3Name = reader.ReadString();
					m_Team4Name = reader.ReadString();
					
					m_NadeDamage = reader.ReadInt();
					m_NumNades = reader.ReadInt();
					

					m_PBScoreBoard = reader.ReadItem() as PBScoreBoard;
		

					m_Active = false;
                    Reset();
					//m_Timer = new PBTimer( this );
					
					
					
				
			
		
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:59,代码来源:PBGameItem.cs

示例11: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 2:
                    {
                        BodyMod = reader.ReadInt();
                        goto case 1;
                    }
                case 1:
                    {
                        m_Items = reader.ReadItemList();
                        break;
                    }
                case 0:
                    {
                        m_Items = new ArrayList();
                        break;
                    }
            }
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:25,代码来源:BakeKitsune.cs

示例12: Deserialize

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

            int version = reader.ReadInt();

            switch (version)
            {
                case 0:
                    {
                        m_ScoreInterval = reader.ReadEncodedInt();

                        m_Duration = reader.ReadTimeSpan();

                        m_Boards = reader.ReadItemList();

                        m_Hills = new HillOfTheKing[reader.ReadEncodedInt()];
                        for (int i = 0; i < m_Hills.Length; ++i)
                            m_Hills[i] = reader.ReadItem() as HillOfTheKing;

                        m_TeamInfo = new KHTeamInfo[reader.ReadEncodedInt()];
                        for (int i = 0; i < m_TeamInfo.Length; ++i)
                            m_TeamInfo[i] = new KHTeamInfo(i, reader);

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

示例13: Deserialize

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

            switch ( version )
            {
                case 5:
                case 4:
                    {
                        m_Signpost = reader.ReadItem();
                        m_SignpostGraphic = reader.ReadInt();

                        goto case 3;
                    }
                case 3:
                    {
                        m_Type = (FoundationType) reader.ReadInt();

                        goto case 2;
                    }
                case 2:
                    {
                        m_SignHanger = reader.ReadItem();

                        goto case 1;
                    }
                case 1:
                    {
                        if ( version < 5 )
                            m_DefaultPrice = reader.ReadInt();

                        goto case 0;
                    }
                case 0:
                    {
                        if ( version < 3 )
                            m_Type = FoundationType.Stone;

                        if ( version < 4 )
                            m_SignpostGraphic = 9;

                        m_LastRevision = reader.ReadInt();
                        m_Fixtures = reader.ReadItemList();

                        m_Current = new DesignState( this, reader );
                        m_Design = new DesignState( this, reader );
                        m_Backup = new DesignState( this, reader );

                        break;
                    }
            }

            base.Deserialize( reader );
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:54,代码来源:HouseFoundation.cs

示例14: Deserialize

 public override void Deserialize(GenericReader reader)
 {
     base.Deserialize(reader);
     int version = reader.ReadInt();
     eventItems = reader.ReadItemList();
     eventMobiles = reader.ReadMobileList();
 }
开发者ID:greeduomacro,项目名称:last-wish,代码行数:7,代码来源:LBBcontroller.cs

示例15: Deserialize

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

			int version = reader.ReadInt();
			m_ArenaList = reader.ReadItemList();
            if (version == 2)
            {
                m_GateSpot = reader.ReadPoint3D();
            }

        }
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:12,代码来源:LadderAreaControl.cs


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