mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 20:19:56 +00:00
29 lines
473 B
C++
29 lines
473 B
C++
|
|
#include "ptr.hpp"
|
|
|
|
#include <cassert>
|
|
|
|
ESM::CellRef& MWWorld::Ptr::getCellRef() const
|
|
{
|
|
assert (mCellRef);
|
|
return *mCellRef;
|
|
}
|
|
|
|
MWWorld::RefData& MWWorld::Ptr::getRefData() const
|
|
{
|
|
assert (mRefData);
|
|
return *mRefData;
|
|
}
|
|
|
|
void MWWorld::Ptr::setContainerStore (ContainerStore *store)
|
|
{
|
|
assert (store);
|
|
assert (!mCell);
|
|
|
|
mContainerStore = store;
|
|
}
|
|
|
|
MWWorld::ContainerStore *MWWorld::Ptr::getContainerStore() const
|
|
{
|
|
return mContainerStore;
|
|
}
|