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


C# GenericReader.ReadPoint2D方法代码示例

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


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

示例1: MahjongWallBreakIndicator

		public MahjongWallBreakIndicator( MahjongGame game, GenericReader reader )
		{
			m_Game = game;

			int version = reader.ReadInt();

			m_Position = reader.ReadPoint2D();
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:8,代码来源:MahjongWallBreakIndicator.cs

示例2: MahjongDealerIndicator

        public MahjongDealerIndicator(MahjongGame game, GenericReader reader)
        {
            this.m_Game = game;

            int version = reader.ReadInt();

            this.m_Position = reader.ReadPoint2D();
            this.m_Direction = (MahjongPieceDirection)reader.ReadInt();
            this.m_Wind = (MahjongWind)reader.ReadInt();
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:10,代码来源:MahjongDealerIndicator.cs

示例3: MahjongTile

        public MahjongTile(MahjongGame game, GenericReader reader)
        {
            this.m_Game = game;

            int version = reader.ReadInt();

            this.m_Number = reader.ReadInt();
            this.m_Value = (MahjongTileType)reader.ReadInt();
            this.m_Position = reader.ReadPoint2D();
            this.m_StackLevel = reader.ReadInt();
            this.m_Direction = (MahjongPieceDirection)reader.ReadInt();
            this.m_Flipped = reader.ReadBool();
        }
开发者ID:FreeReign,项目名称:forkuo,代码行数:13,代码来源:MahjongTile.cs

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

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

示例6: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                    {
                        this.m_Bounds = reader.ReadRect2D();

                        this.m_Width = reader.ReadInt();
                        this.m_Height = reader.ReadInt();

                        this.m_Protected = reader.ReadBool();

                        int count = reader.ReadInt();
                        for (int i = 0; i < count; i++)
                            this.m_Pins.Add(reader.ReadPoint2D());

                        break;
                    }
            }
        }
开发者ID:ITLongwell,项目名称:ServUO,代码行数:25,代码来源:MapItem.cs

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

示例8: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 2:
                {
                    SaveFlag flags = (SaveFlag)reader.ReadByte();

                    if ( GetSaveFlag( flags, SaveFlag.MaxItems ) )
                        m_MaxItems = reader.ReadEncodedInt();
                    else
                        m_MaxItems = -1;

                    if ( GetSaveFlag( flags, SaveFlag.GumpID ) )
                        m_GumpID = reader.ReadEncodedInt();
                    else
                        m_GumpID = -1;

                    if ( GetSaveFlag( flags, SaveFlag.DropSound ) )
                        m_DropSound = reader.ReadEncodedInt();
                    else
                        m_DropSound = -1;

                    break;
                }
                case 1:
                {
                    m_MaxItems = reader.ReadInt();
                    goto case 0;
                }
                case 0:
                {
                    if ( version < 1 )
                        m_MaxItems = m_GlobalMaxItems;

                    m_GumpID = reader.ReadInt();
                    m_DropSound = reader.ReadInt();

                    if ( m_GumpID == DefaultGumpID )
                        m_GumpID = -1;

                    if ( m_DropSound == DefaultDropSound )
                        m_DropSound = -1;

                    if ( m_MaxItems == DefaultMaxItems )
                        m_MaxItems = -1;

                    //m_Bounds = new Rectangle2D( reader.ReadPoint2D(), reader.ReadPoint2D() );
                    reader.ReadPoint2D();
                    reader.ReadPoint2D();

                    break;
                }
            }
        }
开发者ID:BackupTheBerlios,项目名称:sunuo-svn,代码行数:59,代码来源:Container.cs

示例9: 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;
				}
			}
		}
开发者ID:Grimoric,项目名称:RunUO.T2A,代码行数:29,代码来源:TreasureMap.cs

示例10: Deserialize

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

            P1 = reader.ReadPoint2D();
            P2 = reader.ReadPoint2D();
            m_AllowHarm = reader.ReadBool();

            ChangeReg();
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:10,代码来源:SpectRegionBanner.cs

示例11: DeserializeObject

		public object DeserializeObject(GenericReader reader)
		{
			object output = null;
			XmlObjectType xmlObjectType = (XmlObjectType)reader.ReadInt();

			if (xmlObjectType == XmlObjectType.Mobile)
			{
				output = reader.ReadMobile();
			}
			else if (xmlObjectType == XmlObjectType.Item)
			{
				output = reader.ReadItem();
			}
			else if (xmlObjectType == XmlObjectType.MobileList)
			{
				output = reader.ReadStrongMobileList();
			}
			else if (xmlObjectType == XmlObjectType.ItemList)
			{
				output = reader.ReadStrongItemList();
			}
			else if (xmlObjectType == XmlObjectType.ArrayList)
			{
				int elements = reader.ReadInt();
				ArrayList list = new ArrayList(elements);
				for (int i = 0; i < elements; i++)
				{
					list.Add(DeserializeObject(reader));
				}
				output = list;
			}
			else if (xmlObjectType == XmlObjectType.DateTime)
			{
				output = reader.ReadDateTime();
			}
			else if (xmlObjectType == XmlObjectType.DateTimeOffset)
			{
				output = reader.ReadDateTimeOffset();
			}
			else if (xmlObjectType == XmlObjectType.BaseGuild)
			{
				output = reader.ReadGuild();
			}
			else if (xmlObjectType == XmlObjectType.IPAddress)
			{
				output = reader.ReadIPAddress();
			}
			else if (xmlObjectType == XmlObjectType.Map)
			{
				output = reader.ReadMap();
			}
			else if (xmlObjectType == XmlObjectType.Point3D)
			{
				output = reader.ReadPoint3D();
			}
			else if (xmlObjectType == XmlObjectType.Point2D)
			{
				output = reader.ReadPoint2D();
			}
			else if (xmlObjectType == XmlObjectType.TimeSpan)
			{
				output = reader.ReadTimeSpan();
			}
			else if (xmlObjectType == XmlObjectType.Rectangle2D)
			{
				output = reader.ReadRect2D();
			}
			else if (xmlObjectType == XmlObjectType.Rectangle3D)
			{
				output = reader.ReadRect3D();
			}
			else if (xmlObjectType == XmlObjectType.Double)
			{
				output = reader.ReadDouble();
			}
			else if (xmlObjectType == XmlObjectType.Integer)
			{
				output = reader.ReadInt();
			}
			else if (xmlObjectType == XmlObjectType.Boolean)
			{
				output = reader.ReadBool();
			}
			else if (xmlObjectType == XmlObjectType.UInt64)
			{
				output = reader.ReadULong();
			}
			else if (xmlObjectType == XmlObjectType.String)
			{
				output = reader.ReadString();
			}
			else if (xmlObjectType == XmlObjectType.Type)
			{
				output = UberScriptFunctions.Methods.TYPE(null, reader.ReadString());
			}
			else if (xmlObjectType == XmlObjectType.Other)
			{
				LoggingCustom.Log(
					"ERROR_Uberscript.txt",
					DateTime.Now + ": xmlobject: " + Name + " attached to " + AttachedTo +
//.........这里部分代码省略.........
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:101,代码来源:XmlObject.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 = 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;
                    if (Level == 0)
                    {
                        Level = 1;
                        Decoder = null;
                        ChestLocation = GetRandomLocation();
                    }

					break;
				}
			}
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:35,代码来源:TreasureMap.cs


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