当前位置: 首页>>代码示例>>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;未经允许,请勿转载。