當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。