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


C# GenericReader.ReadMap方法代码示例

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


在下文中一共展示了GenericReader.ReadMap方法的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 override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch ( version )
			{
				case 3:
				case 2:
				{
					m_Level = reader.ReadInt();
					goto case 1;
				}
				case 1:
				{
					m_TargetMap = reader.ReadMap();
					break;
				}
				case 0:
				{
					m_TargetMap = Map.Felucca;
					break;
				}
			}

			if ( version < 2 )
				m_Level = GetRandomLevel();

//			if( version < 3 && m_TargetMap == Map.Tokuno )
//				m_TargetMap = Map.Felucca;
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:32,代码来源:MessageInABottle.cs

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

示例5: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 2:
				{
					m_Level = reader.ReadInt();
					goto case 1;
				}
				case 1:
				{
					m_TargetMap = reader.ReadMap();
					break;
				}
				case 0:
				{
					m_TargetMap = Map.Trammel;
					break;
				}
			}

			if ( version < 2 )
				m_Level = GetRandomLevel();
		}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:28,代码来源:MessageInABottle.cs

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

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

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

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

示例10: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 1:
                {
                    m_TargetMap = reader.ReadMap();
                    break;
                }
                case 0:
                {
                    m_TargetMap = Map.Trammel;
                    break;
                }
            }
        }
开发者ID:FreeReign,项目名称:Rebirth-Repack,代码行数:20,代码来源:MessageInABottle.cs

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

示例12: DaviesDeedEntry

 public DaviesDeedEntry(GenericReader reader)
 {
     int version = reader.ReadByte();
     m_type = reader.ReadInt();
     m_Level = reader.ReadInt();
     m_Decoder = reader.ReadMobile();
     m_Map = reader.ReadMap();
     m_Location2d = reader.ReadPoint2D();
     m_Location3d = reader.ReadPoint3D();
     m_Bounds = reader.ReadRect2D();
     m_Mapnumber = reader.ReadString();
 }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:12,代码来源:DaviesLockerDeed.cs

示例13: Deserialize

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

            int version = reader.ReadInt();

            m_Target = reader.ReadPoint3D();
            m_TargetMap = reader.ReadMap();

            if ( version >= 1 )
                m_bDispellable = reader.ReadBool();
        }
开发者ID:greeduomacro,项目名称:divinity,代码行数:12,代码来源:Moongate.cs

示例14: Deserialize

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

            int version = reader.ReadInt();

            ScoreModifier = 1.0;

            switch (version)
            {
                case 3:
                    {
                        ScoringType = (Scoring) reader.ReadInt();
                        ScoreModifier = reader.ReadDouble();
                        goto case 2;
                    }
                case 2:
                    {
                        m_EventSupplier = reader.ReadItem<EventSupplier>();
                        m_UseSphereRules = reader.ReadBool();
                        m_GiveHorses = reader.ReadBool();
                        goto case 1;
                    }
                case 1:
                    {
                        m_MatchMin = reader.ReadInt();
                        m_LeaveLocation = reader.ReadPoint3D();
                        m_LeaveMap = reader.ReadMap();
                        goto case 0;
                    }
                case 0:
                    {
                        Started = reader.ReadBool();
                        m_Active = reader.ReadBool();
                        m_AcceptingContestants = reader.ReadBool();
                        m_DMSpawnPoints = reader.ReadStrongItemList<DMSpawnPoint>();

                        #region Verify loaded spawn points

                        List<DMSpawnPoint> removalList = new List<DMSpawnPoint>();
                        foreach (DMSpawnPoint dmSpawnPoint in m_DMSpawnPoints)
                            if (dmSpawnPoint.StoneLink != this)
                                removalList.Add(dmSpawnPoint);

                        foreach (DMSpawnPoint dmSpawnPoint in removalList)
                            m_DMSpawnPoints.Remove(dmSpawnPoint);

                        #endregion

                        m_MountCollection = ReadMountCollection(reader);
                        break;
                    }
            }

            m_Started = false;
            AcceptingContestants = false;
            Active = false;
        }
开发者ID:FreeReign,项目名称:imaginenation,代码行数:58,代码来源:DMStone.cs

示例15: Deserialize

		public void Deserialize(GenericReader reader)
		{
			reader.ReadByte();

			Level = reader.ReadInt();
			Decoder = reader.ReadMobile();
			Map = reader.ReadMap();
			Location = reader.ReadPoint2D();
			Bounds = reader.ReadRect2D();
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:10,代码来源:TMapBook.cs


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