public ReactorEntity( CubeGridEntity parent, MyObjectBuilder_Reactor definition, Object backingObject )
            : base(parent, definition, backingObject)
        {
            m_Inventory = new InventoryEntity( definition.Inventory, InternalGetReactorInventory( ) );

            m_lastInventoryRefresh = DateTime.Now;
        }
        public ReactorEntity( CubeGridEntity parent, MyObjectBuilder_Reactor definition )
            : base(parent, definition)
        {
            m_Inventory = new InventoryEntity( definition.Inventory );

            m_lastInventoryRefresh = DateTime.Now;
        }
예제 #3
0
        public ReactorEntity(CubeGridEntity parent, MyObjectBuilder_Reactor definition, Object backingObject)
            : base(parent, definition, backingObject)
        {
            m_Inventory = new InventoryEntity(definition.Inventory, InternalGetReactorInventory());
            m_powerProducer = new PowerProducer(Parent.PowerManager, ActualObject);

            m_lastInventoryRefresh = DateTime.Now;
        }
예제 #4
0
        public ReactorEntity(CubeGridEntity parent, MyObjectBuilder_Reactor definition)
            : base(parent, definition)
        {
            m_Inventory = new InventoryEntity(definition.Inventory);
            m_powerProducer = new PowerProducer(Parent.PowerManager, null);

            m_lastInventoryRefresh = DateTime.Now;
        }