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); }
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); }
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; }
public bool CheckKey(uint keyValue) { object objValue = this.GetPropertyValue("PPlank"); NewPlank PPlank = objValue as NewPlank; if (PPlank != null) { if (PPlank.KeyValue == keyValue) { return(true); } } objValue = this.GetPropertyValue("SPlank"); NewPlank SPlank = objValue as NewPlank; if (SPlank != null) { if (SPlank.KeyValue == keyValue) { return(true); } } objValue = this.GetPropertyValue("Ropes"); List <BoatRope2> Ropes = objValue as List <BoatRope2>; if (Ropes != null) { if (Ropes[0].KeyValue == keyValue) { return(true); } } return(false); }