Exemplo n.º 1
0
 protected BaseSmoothMulti(int itemID)
     : base(itemID)
 {
     m_Facing           = Direction.North;
     m_Moving           = Direction.North;
     m_Speed            = SpeedCode.Stop;
     m_ContainedObjects = new DynamicComponentList();
     m_VirtualMount     = new SmoothMultiMountItem(this);
     m_Instances.Add(this);
 }
Exemplo n.º 2
0
 protected BaseSmoothMulti(int itemID)
     : base(itemID)
 {
     _facing           = Direction.North;
     _moving           = Direction.North;
     _speed            = SpeedCode.Stop;
     _containedObjects = new DynamicComponentList();
     _virtualMount     = new SmoothMultiMountItem(this);
     _instances.Add(this);
 }
Exemplo n.º 3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_Facing           = (Direction)reader.ReadByte();
            m_VirtualMount     = reader.ReadItem() as SmoothMultiMountItem;
            m_Moving           = m_Facing;
            m_Speed            = SpeedCode.Stop;
            m_ContainedObjects = new DynamicComponentList(reader);

            if (m_VirtualMount == null)
            {
                Delete();
            }
        }