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


C# GenericReader.ReadMap方法代码示例

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


在下文中一共展示了GenericReader.ReadMap方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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,项目名称:annox,代码行数:28,代码来源:ParchmentMessage.cs

示例2: Deserialize

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

			int version = reader.ReadInt();
			m_Level = reader.ReadInt();
			m_TargetMap = reader.ReadMap();
		}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:8,代码来源:ParchmentMessage.cs

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

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

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

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

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

示例8: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadEncodedInt();
			Point = reader.ReadPoint2D();
			Range = reader.ReadInt();
			Map = reader.ReadMap();

			int count = reader.ReadInt();
			Messages = new string[ count ];

			for ( int i = 0; i < count; i++ )
				Messages[i] = reader.ReadString();

			OnMessage = reader.ReadInt();
		}	
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:16,代码来源:StudyObjective.cs

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

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

示例11: Deserialize

        // Legacy... binary serialization only used in v1.00, deserialization preserved to migrate data.
        public static SR_Rune Deserialize(GenericReader reader, int version)
        {
            SR_Rune rune = null;

            string name = reader.ReadString();
            bool isRunebook = reader.ReadBool();

            Map targetMap = reader.ReadMap();
            Point3D targetLoc = reader.ReadPoint3D();

            if (isRunebook)
                rune = new SR_Rune(name, isRunebook);
            else
                rune = new SR_Rune(name, targetMap, targetLoc);

            int count = reader.ReadInt();
            for (int i = 0; i < count; i++)
                rune.AddRune(SR_Rune.Deserialize(reader, version));

            return rune;
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:22,代码来源:Rune.cs

示例12: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				{
					m_CompletedBy = reader.ReadMobile();

					goto case 0;
				}
				case 0:
				{
					m_Level = (int)reader.ReadInt();
					m_Completed = reader.ReadBool();
					m_Decoder = reader.ReadMobile();
					m_Map = reader.ReadMap();
					m_Location = reader.ReadPoint2D();

					if ( version == 0 && m_Completed )
						m_CompletedBy = m_Decoder;

					break;
				}
			}

			if ( Core.AOS && m_Decoder != null && LootType == LootType.Regular)
				LootType = LootType.Blessed;
		}
开发者ID:Leorgrium,项目名称:runuo,代码行数:32,代码来源:TreasureMap.cs

示例13: Deserialize

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

			int version = reader.ReadInt();

            switch (version)
            {
                case 3:
                    {
                        m_AllowPets = reader.ReadBool();
                        goto case 2;
                    }
                case 2:
                    {
                        m_MaxSkills = reader.ReadInt();
                        m_MinSkills = reader.ReadInt();
                        goto case 1;
                    }
                case 1:
                    {
                        m_EntranceMap = reader.ReadMap();
                        goto case 0;
                    }
                case 0:
                    {
                        m_DungeonName = reader.ReadString();
                        m_Size = reader.ReadInt();
                        m_MaxPlayers = reader.ReadInt();
                        m_EntrancePoint = reader.ReadPoint3D();
                        break;
                    }
            }

            UnRegisterDungeon(this);
            RegisterDungeon(this);
		} 
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:37,代码来源:GroupDungeonStone.cs

示例14: Deserialize

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

			int version = reader.ReadInt();

			switch( version ) {
				case 6: {
						_minZ = reader.ReadInt();
						_maxZ = reader.ReadInt();

						goto case 5;
					}
				case 5: {
						m_EditAccessLevel = (AccessLevel)reader.ReadInt();

						goto case 4;
					}
				case 4: {
						m_RegionArea = ReadRect3DArray( reader );

						m_Flags = (RegionFlag)reader.ReadInt();

						m_RestrictedSpells = ReadBitArray( reader );
						m_RestrictedSkills = ReadBitArray( reader );

						m_Active = reader.ReadBool();

						m_RegionName = reader.ReadString();
						m_RegionPriority = reader.ReadInt();
						m_Music = (MusicName)reader.ReadInt();
						m_PlayerLogoutDelay = reader.ReadTimeSpan();
						m_LightLevel = reader.ReadInt();

						if( version <= 4 ) {
							reader.ReadMap();
							reader.ReadPoint3D();
							reader.ReadMap();
							reader.ReadPoint3D();
						}

						break;
					}
				case 3: //pre-RunUO 2.0
					{
						m_LightLevel = reader.ReadInt();
						goto case 2;
					}
				case 2: {
						m_Music = (MusicName)reader.ReadInt();
						goto case 1;
					}
				case 1: {
						List<Rectangle2D> rects2d = ReadRect2DArray( reader );
						foreach( Rectangle2D rect in rects2d ) {
							Rectangle3D newrect = Server.Region.ConvertTo3D( rect );
							DoChooseArea( null, this.Map, newrect.Start, newrect.End, this );
						}

						m_RegionPriority = reader.ReadInt();
						m_PlayerLogoutDelay = reader.ReadTimeSpan();

						m_RestrictedSpells = ReadBitArray( reader );
						m_RestrictedSkills = ReadBitArray( reader );

						m_Flags = (RegionFlag)reader.ReadInt();

						m_RegionName = reader.ReadString();
						break;
					}
				case 0: {
						List<Rectangle2D> rects2d = ReadRect2DArray( reader );
						foreach( Rectangle2D rect in rects2d ) {
							Rectangle3D newrect = Server.Region.ConvertTo3D( rect );
							DoChooseArea( null, this.Map, newrect.Start, newrect.End, this );
						}

						m_RestrictedSpells = ReadBitArray( reader );
						m_RestrictedSkills = ReadBitArray( reader );

						m_Flags = (RegionFlag)reader.ReadInt();

						m_RegionName = reader.ReadString();
						break;
					}
			}

			m_AllControls.Add( this );

			if( RegionNameTaken( m_RegionName ) )
				m_RegionName = FindNewName( m_RegionName );

			UpdateRegion();
		}
开发者ID:greeduomacro,项目名称:hubroot,代码行数:93,代码来源:RegionControl.cs

示例15: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			
			int version = reader.ReadInt();
			
			_Level = reader.ReadInt();
			_MessageIndex = reader.ReadInt();
			_TargetMap = reader.ReadMap();
			_TargetLocation = reader.ReadPoint3D();
		}
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:11,代码来源:ItemListEntries.cs


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