#ifndef GAME_MWCLASS_CONTAINERUTIL_H #define GAME_MWCLASS_CONTAINERUTIL_H #include #include "../mwworld/ptr.hpp" #include "../mwworld/containerstore.hpp" namespace MWClass { template void insertIntoContainerStore (const MWWorld::Ptr& ptr, ESMS::CellRefList& containerStore) { if (!ptr.isEmpty()) { // TODO check stacking ESMS::LiveCellRef cellRef; cellRef.base = ptr.get()->base; cellRef.ref = ptr.getCellRef(); cellRef.mData = ptr.getRefData(); containerStore.list.push_back (cellRef); } } } #endif