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


C# GenericReader.ReadItem方法代码示例

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


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

示例1: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				{
					m_House = reader.ReadItem() as BaseHouse;
					goto case 0;
				}
				case 0:
				{
					m_Description = reader.ReadString();
					m_Marked = reader.ReadBool();
					m_Target = reader.ReadPoint3D();
					m_TargetMap = reader.ReadMap();

					CalculateHue();

					break;
				}
			}
		}
开发者ID:nathanvy,项目名称:runuo,代码行数:26,代码来源:RecallRune.cs

示例2: Deserialize

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

			int version = reader.ReadInt();

			m_Commodity = reader.ReadItem();

			switch ( version )
			{
				case 0:
				{
					if (m_Commodity != null)
					{
						Hue = 0x592;
					}
					break;
				}
			}

			if ( m_Commodity != null && !( m_Commodity is ICommodity ) ) //Apparently, there may be items out there with this.  Funky.
			{
				Timer.DelayCall( TimeSpan.Zero, this.Delete );
			}
		}
开发者ID:nick12344356,项目名称:The-Basement,代码行数:25,代码来源:CommodityDeed.cs

示例3: Deserialize

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

			switch ( version )
			{
				case 1:
				{
					m_Flag = reader.ReadItem() as IGameFlag;
					goto case 0;
				}
				case 0:
				{
					m_Members = reader.ReadMobileList();
					m_Home = reader.ReadPoint3D();
					m_FlagHome = reader.ReadPoint3D();
					m_Map = reader.ReadMap();
					m_Points = reader.ReadInt();
					m_Name = reader.ReadString();
					m_Hue = reader.ReadInt();
					m_UId = reader.ReadInt();
					m_Game = reader.ReadItem() as CTFGame;
					break;
				}
			}
		}
开发者ID:FreeReign,项目名称:realmofdarkness,代码行数:26,代码来源:CTFTeam.cs

示例4: Deserialize

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

            int version = reader.ReadInt();

            this.m_Item = reader.ReadItem() as InternalItem;
            this.m_Item2 = reader.ReadItem() as InternalItem2;
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:9,代码来源:LargeForge.cs

示例5: Deserialize

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

            int version = reader.ReadInt();

            m_TillerMan = reader.ReadItem() as NewTillerMan;
            m_PPlank = reader.ReadItem() as NewPlank;
            m_SPlank = reader.ReadItem() as NewPlank;
            m_Hold = reader.ReadItem() as NewHold;
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:11,代码来源:NewBaseBoat.cs

示例6: Deserialize

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

            int version = reader.ReadInt();

            m_ChainedItem1 = reader.ReadItem();
            m_ChainedItem2 = reader.ReadItem();
            m_ChainedItem3 = reader.ReadItem();
            m_ChainedItem4 = reader.ReadItem();
            m_ChainedMobile1 = reader.ReadMobile();
            m_ChainedMobile2 = reader.ReadMobile();
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:13,代码来源:ChainDeletionItem.cs

示例7: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 0:
				{
					m_Boat = reader.ReadItem() as BaseBoat;
					m_Side = (PlankSide) reader.ReadInt();
					m_Locked = reader.ReadBool();
					m_KeyValue = reader.ReadUInt();

					if ( m_Boat == null )
						Delete();

					break;
				}
			}

			if ( IsOpen )
			{
				m_CloseTimer = new CloseTimer( this );
				m_CloseTimer.Start();
			}
		}
开发者ID:Grimoric,项目名称:RunUO.T2A,代码行数:28,代码来源:Plank.cs

示例8: Deserialize

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

			int version = reader.ReadInt();

			switch( version )
			{
				default:
				{
					int count = reader.ReadInt();

					m_Components = new List<Item>( count );

					for( int i = 0; i < count; ++i )
					{
						Item item = reader.ReadItem();

						if( item != null )
							m_Components.Add( item );
					}

					break;
				}
			}
			cellblock = new HoldingCell( X, Y, Map );
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:27,代码来源:JailCage.cs

示例9: Deserialize

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

            int version = reader.ReadEncodedInt();

            this.m_Gland = reader.ReadItem();
        }
开发者ID:FreeReign,项目名称:forkuo,代码行数:8,代码来源:PlagueBeastOrgans.cs

示例10: Deserialize

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

            int version = reader.ReadInt();

            this.m_Lantern = (Lantern)reader.ReadItem();
        }
开发者ID:FreeReign,项目名称:forkuo,代码行数:8,代码来源:SchmendrickApprenticeCorpse.cs

示例11: Deserialize

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

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

            m_Item = reader.ReadItem() as InternalItem;
        }
开发者ID:BackupTheBerlios,项目名称:sunuo-svn,代码行数:8,代码来源:Tapestry.cs

示例12: Deserialize

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

            mLight = ( WearableLight )reader.ReadItem( );
            IsLit = (bool) reader.ReadBool();
        }
开发者ID:zerodowned,项目名称:My-Stuff,代码行数:8,代码来源:BaseClothing_ItemOfLight.cs

示例13: Deserialize

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

            int version = reader.ReadInt();

            mate = reader.ReadItem() as LinkedBook;
        }
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:8,代码来源:LinkedBooks.cs

示例14: Deserialize

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

            int version = reader.ReadInt();

            m_House = reader.ReadItem() as BaseHouse;
        }
开发者ID:Godkong,项目名称:Origins,代码行数:8,代码来源:TentChest.cs

示例15: Deserialize

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

            int version = reader.ReadInt();
			
            this.m_Altar = reader.ReadItem() as PeerlessAltar;
        }
开发者ID:m309,项目名称:ForkUO,代码行数:8,代码来源:BasePeerless.cs


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