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


C# GenericReader.ReadPoint3D方法代碼示例

本文整理匯總了C#中Server.GenericReader.ReadPoint3D方法的典型用法代碼示例。如果您正苦於以下問題:C# GenericReader.ReadPoint3D方法的具體用法?C# GenericReader.ReadPoint3D怎麽用?C# GenericReader.ReadPoint3D使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Server.GenericReader的用法示例。


在下文中一共展示了GenericReader.ReadPoint3D方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				case 0:
				{
					m_MultiID = reader.ReadInt();
					m_Offset = reader.ReadPoint3D();
					m_ShipName = reader.ReadString();

					if ( version == 0 )
						reader.ReadUInt();

					break;
				}
			}

			if ( LootType == LootType.Newbied )
				LootType = LootType.Blessed;

			if ( Weight == 0.0 )
				Weight = 1.0;
		}
開發者ID:jsrn,項目名稱:MidnightWatchServer,代碼行數:28,代碼來源:BaseDockedBoat.cs

示例2: Deserialize

        public void Deserialize( GenericReader reader )
        {
            int version = reader.ReadInt();
            switch( version )
            {
                case 1:
                {
                    m_SpellType = ScriptCompiler.FindTypeByName(reader.ReadString());
                    m_Icon      = reader.ReadInt();
                    m_Location      = reader.ReadPoint3D();
                    m_School    = (School)reader.ReadInt();

                    break;
                }
                case 0:
                {
                    int bad = reader.ReadInt();
                    m_Icon    = reader.ReadInt();
                    m_Location    = reader.ReadPoint3D();

                    m_SpellType = null;
                    m_School  = School.Invalid;
                    break;
                }
            }
        }
開發者ID:evildude807,項目名稱:kaltar,代碼行數:26,代碼來源:IconInfo.cs

示例3: Deserialize

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

            int version = reader.ReadInt();
            m_AreaStart = reader.ReadPoint3D();
            m_AreaEnd = reader.ReadPoint3D();

            SetRegion();
        }
開發者ID:kamronbatman,項目名稱:Defiance-AOS-Pre-2012,代碼行數:10,代碼來源:NoHousingZoneBlock.cs

示例4: 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

示例5: Deserialize

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

			int version = reader.ReadInt();

			int count;
			count = reader.ReadInt();
			for (int i = 0; i < count; i++)
				m_WallCoordinates.Add(reader.ReadPoint3D());

			count = reader.ReadInt();
			for (int i = 0; i < count; i++)
				m_StartLocations.Add(reader.ReadPoint3D());

			m_GameTime = reader.ReadTimeSpan();
			m_RegionControl = reader.ReadItem() as BMregion;
			m_ExitLosers = reader.ReadPoint3D();

			if (version >= 1)
			{
				m_LinkBombs = reader.ReadBool();
				m_ChanceForUpgrade = reader.ReadInt();

				if (version >= 2)
				{
					m_DanageWhileFS = reader.ReadBool();

					if (version >= 3)
						m_WriteScoreboard = reader.ReadBool();
					{
						if (version >= 4)
						{
							m_ExitWinner = reader.ReadPoint3D();
							m_ExitOnDraw = reader.ReadPoint3D();
							m_AutoStart = reader.ReadBool();
							m_KeepOpenJoin = reader.ReadBool();
						}
					}
				}
			}

			m_Running = false;
			m_OpenJoin = false;
		}
開發者ID:kamronbatman,項目名稱:DefianceUO-Pre1.10,代碼行數:45,代碼來源:BomberManGame.cs

示例6: Deserialize

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

			int version = reader.ReadInt();

			m_Point = reader.ReadPoint3D();
			m_Map = reader.ReadMap();
		}
開發者ID:greeduomacro,項目名稱:hubroot,代碼行數:9,代碼來源:PortingCrystal.cs

示例7: Deserialize

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

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

            m_MapDest = reader.ReadMap();
            m_LocDest = reader.ReadPoint3D();
        }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:10,代碼來源:InstanceExitGate.cs

示例8: Deserialize

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

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

            m_Dest = reader.ReadPoint3D();
            m_QuestStep = reader.ReadInt();
        }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:10,代碼來源:Triggers.cs

示例9: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			
			int version = reader.ReadInt();
			
			m_PointDest = reader.ReadPoint3D();
			m_MapDest = reader.ReadMap();
			m_Locked = reader.ReadBool();
			m_Active = reader.ReadBool();
		}		
開發者ID:romeov007,項目名稱:imagine-uo,代碼行數:11,代碼來源:Teleporters.cs

示例10: Deserialize

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

			int version = reader.ReadInt();

			switch (version)
			{
				case 0:
					ToLocation = reader.ReadPoint3D();
					ToMap = reader.ReadMap();
					break;
			}
		}
開發者ID:Crome696,項目名稱:ServUO,代碼行數:14,代碼來源:TeleportRope.cs

示例11: Deserialize

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

			switch (version)
			{
				case 0:
					{
						_Map = reader.ReadMap();
						_Location = reader.ReadPoint3D();
						break;
					}
			}
		}
開發者ID:jasegiffin,項目名稱:JustUO,代碼行數:14,代碼來源:Place.cs

示例12: Load

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

            if ( version >= 1 )
            {
                c_Hue = reader.ReadInt();
                c_Name = reader.ReadString();
            }

            c_TypeString = reader.ReadString();
            c_ItemID = reader.ReadInt();
            c_Location = reader.ReadPoint3D();
            c_Map = reader.ReadMap();
        }
開發者ID:justdanofficial,項目名稱:khaeros,代碼行數:15,代碼來源:DecoreItemInfo.cs

示例13: Deserialize

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

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

            m_Addon = reader.ReadItem() as BaseAddonContainer;
            m_Offset = reader.ReadPoint3D();

            if ( m_Addon != null )
                m_Addon.OnComponentLoaded( this );

            AddonComponent.ApplyLightTo( this );
        }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:15,代碼來源:AddonContainerComponent.cs

示例14: Deserialize

			public void Deserialize(GenericReader reader)
			{
				Point = reader.ReadPoint3D();
				Island = reader.ReadInt();
				NumLinks = reader.ReadInt();
				
				Links = new SectorNode[8];
				Distances = new int[8];

				for (int i = 0; i < NumLinks; i++)
				{
					int x = reader.ReadInt(), y = reader.ReadInt();
					Links[i] = m_Nodes[x, y];
					Distances[i] = reader.ReadInt();
				}
			}
開發者ID:zerodowned,項目名稱:angelisland,代碼行數:16,代碼來源:SectorPathAlgorithm.cs

示例15: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                    {
                        m_DestLoc = reader.ReadPoint3D();
                        m_DestMap = reader.ReadMap();
                        m_Charges = reader.ReadInt();
                        break;
                    }
            }
        }
開發者ID:Ravenwolfe,項目名稱:xrunuo,代碼行數:17,代碼來源:HornOfRetreat.cs


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