Exemplo n.º 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);
        }
Exemplo n.º 2
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;
        }