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


C# GenericReader.ReadPoint3D方法代码示例

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


在下文中一共展示了GenericReader.ReadPoint3D方法的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: LocationStruct

 public LocationStruct(GenericReader reader)
 {
     int version = reader.ReadInt();
     Map = reader.ReadMap();
     Location = reader.ReadPoint3D();
     Name = reader.ReadString();
 }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:7,代码来源:SunnyToolbar.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();

            _respawnLoc = reader.ReadPoint3D();
        }
开发者ID:greeduomacro,项目名称:hubroot,代码行数:7,代码来源:RespawnBell.cs

示例5: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 1:
                    {
                        m_Offset = reader.ReadPoint3D();

                        goto case 0;
                    }
                case 0:
                    {
                        m_MultiID = reader.ReadInt();

                        break;
                    }
            }

            if ( Weight == 0.0 )
            {
                Weight = 1.0;
            }
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:27,代码来源:HouseDeed.cs

示例6: 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:greeduomacro,项目名称:last-wish,代码行数:28,代码来源:BaseDockedBoat.cs

示例7: Deserialize

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

            m_Target = reader.ReadPoint3D();
            m_TargetMap = reader.ReadMap();
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:8,代码来源:SGEnergyParticles.cs

示例8: Deserialize

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

            TeleportLocation = reader.ReadPoint3D();
            LocationSet = reader.ReadBool();
            Level = (SecureLevel) reader.ReadInt();
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:9,代码来源:ArchwayDeed.cs

示例9: Deserialize

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

            int version = reader.ReadInt();

            m_Active = reader.ReadBool();
            m_PointDest = reader.ReadPoint3D();
            m_MapDest = reader.ReadMap();
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:10,代码来源:KhaldunPitTeleporter.cs

示例10: Deserialize

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

            var version = reader.ReadInt();

            PointDest = reader.ReadPoint3D();
            MapDest = reader.ReadMap();
            Locked = reader.ReadBool();
            Active = reader.ReadBool();
        }
开发者ID:rokann,项目名称:JustUO,代码行数:11,代码来源:SecretWallTeleporters.cs

示例11: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 0:
				{
                    m_Home2 = reader.ReadPoint3D();
					break;
				}
			}
        }
开发者ID:FreeReign,项目名称:imaginenation,代码行数:15,代码来源:CWTeam.cs

示例12: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				{
					m_Flag = reader.ReadItem() as IGameFlag;
					m_FlagHome = reader.ReadPoint3D();
					break;
				}
			}
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:16,代码来源:CTFTeam.cs

示例13: Deserialize

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

                int version = reader.ReadInt();

                switch(version)
                {
                case 0:
                    m_StaffLevel = (AccessLevel)reader.ReadInt();
                    m_HomeLoc = reader.ReadPoint3D();
                    string mapname = reader.ReadString();

                    try{
                    m_HomeMap = Map.Parse(mapname);
                    } catch{}

                    break;
                }
        }
开发者ID:Godkong,项目名称:Origins,代码行数:20,代码来源:StaffCloak.cs

示例14: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				case 0:
				{
					m_Description = reader.ReadString();
					m_Marked = reader.ReadBool();
					m_Target = reader.ReadPoint3D();
					m_TargetMap = reader.ReadMap();

					break;
				}
			}
		}
开发者ID:Grimoric,项目名称:RunUO.T2A,代码行数:20,代码来源:RecallRune.cs

示例15: Deserialize

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

            int version = reader.ReadInt();
            switch (version)
            {
                case 2:
                    {
                        m_EventType = (EventType)reader.ReadByte();
                        goto case 1;
                    }
                case 1:
                    {
                        m_TargetLocation = reader.ReadPoint3D();
                        m_TargetMap = reader.ReadMap();
                        break;
                    }
            }
        }
开发者ID:FreeReign,项目名称:imaginenation,代码行数:20,代码来源:CustomGameEventSupplier.cs


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