예제 #1
0
 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";
 }
예제 #2
0
        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;
            }
            }
        }
예제 #3
0
		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;
				}
			}
		}
예제 #4
0
		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";
		}