Beispiel #1
0
 protected NewBaseBoat(int ItemID, int maxhullDurability, int maxsailDurability, Point3D tillermanOffset, Point3D pPlankOffset, Point3D sPlankOffset, Point3D holdOffset)
     : base(ItemID, maxhullDurability, maxsailDurability)
 {
     m_TillerMan = new NewTillerMan(this, tillermanOffset);
     m_PPlank    = new NewPlank(this, pPlankOffset, PlankSide.Port, 0);
     m_SPlank    = new NewPlank(this, sPlankOffset, PlankSide.Starboard, 0);
     m_Hold      = new NewHold(this, holdOffset);
 }
Beispiel #2
0
 protected NewBaseBoat(int ItemID, ushort maxDurability, Point3D tillermanOffset, Point3D pPlankOffset, Point3D sPlankOffset, Point3D holdOffset)
     : base(ItemID)
 {
     _anchored = false;
     TillerMan = new NewTillerMan(this, tillermanOffset);
     PPlank    = new NewPlank(this, pPlankOffset, PlankSide.Port, 0);
     SPlank    = new NewPlank(this, sPlankOffset, PlankSide.Starboard, 0);
     NewHold   = new NewHold(this, holdOffset);
 }
Beispiel #3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_TillerMan = reader.ReadItem() as NewTillerMan;
            m_PPlank    = reader.ReadItem() as NewPlank;
            m_SPlank    = reader.ReadItem() as NewPlank;
            m_Hold      = reader.ReadItem() as NewHold;
        }