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


C# Multis.BaseBoat类代码示例

本文整理汇总了C#中Server.Multis.BaseBoat的典型用法代码示例。如果您正苦于以下问题:C# BaseBoat类的具体用法?C# BaseBoat怎么用?C# BaseBoat使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 0:
				{
					m_Boat = reader.ReadItem() as BaseBoat;
					m_Side = (PlankSide) reader.ReadInt();
					m_Locked = reader.ReadBool();
					m_KeyValue = reader.ReadUInt();

					if ( m_Boat == null )
						Delete();

					break;
				}
			}

			if ( IsOpen )
			{
				m_CloseTimer = new CloseTimer( this );
				m_CloseTimer.Start();
			}
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:28,代码来源:Plank.cs

示例2: BoatMountItem

        public BoatMountItem(BaseBoat mount) : base(0x3E96)
        {
            Layer = Layer.Mount;

            Movable = false;
            m_Mount = mount;
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:BoatMountItem.cs

示例3: ShipCrate

 public ShipCrate(Mobile owner, BaseBoat boat)
 {
     LiftOverride = true;
     m_Owner = owner;
     m_Boat = boat;
     Movable = false;
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:ShippingCrate.cs

示例4: ConfirmDryDockGump

		public ConfirmDryDockGump( Mobile from, BaseBoat boat, Mobile dockmaster ) : base( 150, 200 )
		{
			m_From = from;
            m_Dockmaster = dockmaster;
			m_Boat = boat;

			m_From.CloseGump( typeof( ConfirmDryDockGump ) );

			AddPage( 0 );

			AddBackground( 0, 0, 220, 170, 5054 );
			AddBackground( 10, 10, 200, 150, 3000 );

            bool needsWarning = boat is BaseGalleon && ((BaseGalleon)boat).HasPaint;

            //if (needsWarning)
            //    AddHtml(20, 20, 180, 80, "Do you wish to dry dock this boat?<br>WARNING: You will lose any non-permanent boat paint applied to your galleon.", true, true);
            //else
            AddHtmlLocalized(20, 20, 180, 80, 1018319, true, needsWarning); // Do you wish to dry dock this boat?

			AddHtmlLocalized( 55, 100, 140, 25, 1011011, false, false ); // CONTINUE
			AddButton( 20, 100, 4005, 4007, 2, GumpButtonType.Reply, 0 );

			AddHtmlLocalized( 55, 125, 140, 25, 1011012, false, false ); // CANCEL
			AddButton( 20, 125, 4005, 4007, 1, GumpButtonType.Reply, 0 );
		}
开发者ID:Crome696,项目名称:ServUO,代码行数:26,代码来源:ConfirmDryDockGump.cs

示例5: Deserialize

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

			int version = reader.ReadInt();
            Boat = reader.ReadItem() as BaseBoat;
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:BoatRansomNote.cs

示例6: Plank

		public Plank( BaseBoat boat, PlankSide side, uint keyValue ) : base( 0x3EB1 + (int)side )
		{
			m_Boat = boat;
			m_Side = side;
			m_KeyValue = keyValue;
			m_Locked = true;

			Movable = false;
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:9,代码来源:Plank.cs

示例7: BaseDockedBoat

		public BaseDockedBoat( int id, Point3D offset, BaseBoat boat ) : base( 0x14F4 )
		{
			Weight = 1.0;
			LootType = LootType.Blessed;

			m_MultiID = id;
			m_Offset = offset;

			m_ShipName = boat.ShipName;
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:10,代码来源:BaseDockedBoat.cs

示例8: BoatRope

 public BoatRope(BaseBoat boat, Point3D offset, uint keyValue)
     : base(boat, offset, null) // direction doesn't matter
 {
     Boat = boat;
     m_KeyValue = keyValue;
     m_Locked = true;
     Offset = offset;
     
     ItemID = 0x14FA;
 }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:10,代码来源:BoatRope.cs

示例9: BaseDockedBoat

        public BaseDockedBoat( int id, Point3D offset, BaseBoat boat ) : base( 0x14F4 )
		{
			Weight = 1.0;
			LootType = LootType.Blessed;

			m_MultiID = id;
			m_Offset = offset;

            m_Direction = Direction.North;
            m_BoatItem = boat;
		}
开发者ID:Crome696,项目名称:ServUO,代码行数:11,代码来源:BaseDockedBoat.cs

示例10: BaseDockedBoat

        public BaseDockedBoat(int id, Point3D offset, BaseBoat boat)
            : base(/*0x14F4*/0x14F2)
        {
            Weight = 1.0;
            //LootType = LootType.Blessed;

            m_MultiID = id;
            m_Offset = offset;
            m_Location = boat.Location;

            m_ShipName = boat.ShipName;
        }
开发者ID:Godkong,项目名称:Origins,代码行数:12,代码来源:BaseDockedBoat.cs

示例11: Deserialize

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

            int version = reader.ReadInt();

            m_Mount = reader.ReadItem() as BaseBoat;

            if (m_Mount == null)
                Delete();
            else
                Internalize();
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:13,代码来源:BoatMountItem.cs

示例12: BoatEquipPacket

        public BoatEquipPacket(Mobile to, BaseBoat boat)
            : base(0x2E, 15)
        {
            Serial parentSerial = to.Serial;

            int hue = boat.Hue;

            m_Stream.Write((int)boat.Serial);
            m_Stream.Write((short)boat.ItemID);
            m_Stream.Write((byte)0);
            m_Stream.Write((byte)boat.Layer);
            m_Stream.Write((int)parentSerial);
            m_Stream.Write((short)hue);
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:14,代码来源:Packets.cs

示例13: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                {
                    m_Boat = reader.ReadItem() as BaseBoat;

                    if ( m_Boat == null )
                        Delete();

                    break;
                }
            }
        }
开发者ID:nathanvy,项目名称:runuo,代码行数:19,代码来源:TillerMan.cs

示例14: ConfirmDryDockGump

		public ConfirmDryDockGump( Mobile from, BaseBoat boat ) : base( 150, 200 )
		{
			m_From = from;
			m_Boat = boat;

			m_From.CloseGump( typeof( ConfirmDryDockGump ) );

			AddPage( 0 );

			AddBackground( 0, 0, 220, 170, 5054 );
			AddBackground( 10, 10, 200, 150, 3000 );

			AddHtmlLocalized( 20, 20, 180, 80, 1018319, true, false ); // Do you wish to dry dock this boat?

			AddHtmlLocalized( 55, 100, 140, 25, 1011011, false, false ); // CONTINUE
			AddButton( 20, 100, 4005, 4007, 2, GumpButtonType.Reply, 0 );

			AddHtmlLocalized( 55, 125, 140, 25, 1011012, false, false ); // CANCEL
			AddButton( 20, 125, 4005, 4007, 1, GumpButtonType.Reply, 0 );
		}
开发者ID:zerodowned,项目名称:angelisland,代码行数:20,代码来源:ConfirmDryDockGump.cs

示例15: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                    {
                        this.m_Boat = reader.ReadItem() as BaseBoat;

                        if (this.m_Boat == null || this.Parent != null)
                            this.Delete();

                        this.Movable = false;

                        break;
                    }
            }
        }
开发者ID:FreeReign,项目名称:forkuo,代码行数:21,代码来源:Hold.cs


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