2013-06-08 10:45:13 +00:00
|
|
|
|
|
|
|
#include "ref.hpp"
|
|
|
|
|
|
|
|
#include "cell.hpp"
|
|
|
|
|
2013-06-18 09:27:05 +00:00
|
|
|
void CSMWorld::CellRef::load (ESM::ESMReader &esm, Cell& cell, const std::string& id)
|
2013-06-08 10:45:13 +00:00
|
|
|
{
|
2013-06-18 09:27:05 +00:00
|
|
|
mId = id;
|
2013-07-06 15:06:06 +00:00
|
|
|
mCellId = cell.mId;
|
2013-06-08 10:45:13 +00:00
|
|
|
|
2013-06-18 09:27:05 +00:00
|
|
|
cell.getNextRef (esm, *this);
|
2013-06-08 10:45:13 +00:00
|
|
|
|
2013-06-18 09:27:05 +00:00
|
|
|
if (!mDeleted)
|
|
|
|
cell.addRef (mId);
|
|
|
|
}
|