2013-04-14 15:04:55 +00:00
|
|
|
#include "cell.hpp"
|
|
|
|
|
|
|
|
#include <sstream>
|
|
|
|
|
2015-07-21 17:25:43 +00:00
|
|
|
void CSMWorld::Cell::load(ESM::ESMReader& esm, bool& isDeleted)
|
2013-04-14 15:04:55 +00:00
|
|
|
{
|
2015-07-21 17:25:43 +00:00
|
|
|
ESM::Cell::load(esm, isDeleted, false);
|
2013-04-14 15:04:55 +00:00
|
|
|
|
2022-10-06 17:39:46 +00:00
|
|
|
mId = ESM::RefId::stringRefId(mName);
|
2015-07-21 17:25:43 +00:00
|
|
|
if (isExterior())
|
2013-04-14 15:04:55 +00:00
|
|
|
{
|
|
|
|
std::ostringstream stream;
|
|
|
|
stream << "#" << mData.mX << " " << mData.mY;
|
2022-10-06 17:39:46 +00:00
|
|
|
mId = ESM::RefId::stringRefId(stream.str());
|
2013-04-14 15:04:55 +00:00
|
|
|
}
|
2013-06-08 10:45:13 +00:00
|
|
|
}
|