2013-04-14 15:04:55 +00:00
|
|
|
|
|
|
|
#include "cell.hpp"
|
|
|
|
|
|
|
|
#include <sstream>
|
|
|
|
|
|
|
|
void CSMWorld::Cell::load (ESM::ESMReader &esm)
|
|
|
|
{
|
|
|
|
mName = mId;
|
|
|
|
|
2013-08-29 11:27:54 +00:00
|
|
|
ESM::Cell::load (esm, false);
|
2013-04-14 15:04:55 +00:00
|
|
|
|
|
|
|
if (!(mData.mFlags & Interior))
|
|
|
|
{
|
|
|
|
std::ostringstream stream;
|
|
|
|
|
|
|
|
stream << "#" << mData.mX << " " << mData.mY;
|
|
|
|
|
|
|
|
mId = stream.str();
|
|
|
|
}
|
2013-06-08 10:45:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CSMWorld::Cell::addRef (const std::string& id)
|
|
|
|
{
|
|
|
|
mRefs.push_back (std::make_pair (id, false));
|
2013-04-14 15:04:55 +00:00
|
|
|
}
|