本文整理汇总了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();
}
}
示例2: BoatMountItem
public BoatMountItem(BaseBoat mount) : base(0x3E96)
{
Layer = Layer.Mount;
Movable = false;
m_Mount = mount;
}
示例3: ShipCrate
public ShipCrate(Mobile owner, BaseBoat boat)
{
LiftOverride = true;
m_Owner = owner;
m_Boat = boat;
Movable = false;
}
示例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 );
}
示例5: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
Boat = reader.ReadItem() as BaseBoat;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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);
}
示例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;
}
}
}
示例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 );
}
示例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;
}
}
}