public BoatRope(BaseGalleon boat, int northItemID, Point3D initOffset, BoatRopeSide side, uint keyValue) : base(boat, northItemID, initOffset) { KeyValue = keyValue; Side = side; Locked = true; Movable = false; Name = "Mooring Line"; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 0: { m_Boat = reader.ReadItem() as BaseGalleon; m_Side = (BoatRopeSide)reader.ReadInt(); m_Locked = reader.ReadBool(); m_KeyValue = reader.ReadUInt(); if (m_Boat == null) { Delete(); } break; } } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 0: { m_Boat = reader.ReadItem() as BaseGalleon; m_Side = (BoatRopeSide) reader.ReadInt(); m_Locked = reader.ReadBool(); m_KeyValue = reader.ReadUInt(); if ( m_Boat == null ) Delete(); break; } } }
public BoatRope2( BaseGalleon boat, int northItemID, Point3D initOffset, BoatRopeSide side, uint keyValue ) : base(boat, northItemID, initOffset) { m_Boat = boat; m_KeyValue = keyValue; m_Side = side; m_Locked = true; Movable = false; Name = "Mooring Line"; }