mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
1e60ad3cd6
Note: This does not change the structure of the ESX format.
25 lines
489 B
C++
25 lines
489 B
C++
|
|
#include "cell.hpp"
|
|
|
|
#include <sstream>
|
|
|
|
void CSMWorld::Cell::load (ESM::ESMReader &esm)
|
|
{
|
|
mName = mId;
|
|
|
|
ESM::Cell::load (esm, true); /// \todo set this to false, once the bug in ESM::Cell::load is fixed
|
|
|
|
if (!(mData.mFlags & Interior))
|
|
{
|
|
std::ostringstream stream;
|
|
|
|
stream << "#" << mData.mX << " " << mData.mY;
|
|
|
|
mId = stream.str();
|
|
}
|
|
}
|
|
|
|
void CSMWorld::Cell::addRef (const std::string& id)
|
|
{
|
|
mRefs.push_back (std::make_pair (id, false));
|
|
} |