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


C# GenericReader.ReadItem方法代码示例

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


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

示例1: 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:jsrn,项目名称:MidnightWatchServer,代码行数:28,代码来源:Plank.cs

示例2: Deserialize

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

            int version = reader.ReadInt();

            switch( version )
            {
                default:
                case 1:
                {
                    _Blocker = (LOSBlocker)reader.ReadItem();
                    goto case 0;
                }
                case 0:
                {

                    BoardGameControlItem = (BoardGameControlItem)reader.ReadItem();

                    Offset.X = reader.ReadInt();
                    Offset.Y = reader.ReadInt();
                    Offset.Z = reader.ReadInt();
                    break;
                }
            }
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:26,代码来源:GamePiece.cs

示例3: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                    {
                        m_Platform = reader.ReadItem() as PeerlessPlatform;
                        m_Key = reader.ReadItem();

                        if ( m_Platform == null )
                            Delete();

                        if ( m_Key != null )
                        {
                            m_Key.Delete();
                            m_Key = null;
                        }

                        break;
                    }
            }
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:26,代码来源:PeerlessKeyBrazier.cs

示例4: Deserialize

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

			int version = reader.ReadInt();
            Boat = reader.ReadItem() as BaseBoat;
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:BoatRansomNote.cs

示例5: Deserialize

 public override void Deserialize(GenericReader reader)
 {
     base.Deserialize(reader);
     int version = reader.ReadInt();
     m_Galleon = reader.ReadItem() as BaseGalleon;
     if(version == 0)
         reader.ReadItem();
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:8,代码来源:ShipRune.cs

示例6: Deserialize

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

			int version = reader.ReadInt();

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

示例7: Deserialize

 public override void Deserialize(GenericReader reader)
 {
     base.Deserialize(reader);
     int version = reader.ReadInt();
     m_GardenGround = (GardenGround)reader.ReadItem();
     m_GardenFence = (GardenFence)reader.ReadItem();
     m_Player = (PlayerMobile)reader.ReadMobile();
     m_GardenVerifier = (GardenVerifier)reader.ReadItem();
 }
开发者ID:FreeReign,项目名称:FarmSystem,代码行数:9,代码来源:GardenDestroyer.cs

示例8: Deserialize

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

			int version = reader.ReadInt();

			m_Owner = (Mobile)reader.ReadMobile();
			m_Tent = (TentAddon)reader.ReadItem();
			m_Flap = (TentFlap)reader.ReadItem();
			m_Chest = (SecureTentChest)reader.ReadItem();
		}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:11,代码来源:TentBedroll.cs

示例9: Deserialize

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

			int version = reader.ReadInt();

			Team = reader.ReadInt();
			ProximityRange = reader.ReadInt();
			Flag = reader.ReadItem() as CTFFlag;
			m_gauntlet = reader.ReadItem() as CTFGauntlet;
			m_HasFlag = reader.ReadBool();
		}
开发者ID:jackuoll,项目名称:Pre-AOS-RunUO,代码行数:12,代码来源:CTF.cs

示例10: Deserialize

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

		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:7,代码来源:EmberBlade.cs

示例11: Deserialize

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

			/*int version = */reader.ReadInt();
			Agujero = reader.ReadItem();
		}
开发者ID:xrunuo,项目名称:xrunuo,代码行数:7,代码来源:OrganoCentral.cs

示例12: Deserialize

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

            SelectedAddon = ( BaseAddon )reader.ReadItem();
        }
开发者ID:zerodowned,项目名称:My-Stuff,代码行数:7,代码来源:AddOnEditor_Att.cs

示例13: PeerlessInstance

        public PeerlessInstance( GenericReader reader )
        {
            m_Owner = reader.ReadItem<PeerlessPlatform>();
            m_Light = reader.ReadItem();
            m_Map = reader.ReadMap();
            m_EntranceLocation = reader.ReadPoint3D();
            m_BossSpawnLocation = reader.ReadPoint3D();
            m_RegionBounds = reader.ReadRect2D();

            Mobile boss = reader.ReadMobile();

            if ( boss != null )
                boss.Delete();

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

示例14: Deserialize

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

            base.Deserialize( reader );

            int version = reader.ReadInt();
            /*
            switch (version)
            {
                case 1:
                    m_Altar = reader.ReadItem() as CCSummoningAltar;
                    goto case 0;
                case 0:
                    // Version 0
                    PointDest = reader.ReadPoint3D();
                    Name = reader.ReadString();
                    Active = reader.ReadBool();
                    m_OneSideArea = reader.ReadRect2D();
                    break;
            }
            */
            switch (version)
            {
                case 0:
                    m_Facing = (DoorFacing)reader.ReadInt();
                    m_Altar = reader.ReadItem() as CCSummoningAltar;
                    break;
            }
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:30,代码来源:CCMagicDoor.cs

示例15: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
			
			m_stone = (CityManagementStone)reader.ReadItem();
		}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:7,代码来源:CityResourceBox.cs


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