當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。