mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 16:49:55 +00:00
26 lines
No EOL
449 B
C++
26 lines
No EOL
449 B
C++
|
|
#include "cellid.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
#include "esmwriter.hpp"
|
|
|
|
void ESM::CellId::load (ESMReader &esm)
|
|
{
|
|
mWorldspace = esm.getHNString ("SPAC");
|
|
|
|
if (esm.isNextSub ("CIDX"))
|
|
{
|
|
esm.getHT (mIndex, 8);
|
|
mPaged = true;
|
|
}
|
|
else
|
|
mPaged = false;
|
|
}
|
|
|
|
void ESM::CellId::save (ESMWriter &esm) const
|
|
{
|
|
esm.writeHNString ("SPAC", mWorldspace);
|
|
|
|
if (mPaged)
|
|
esm.writeHNT ("CIDX", mIndex, 8);
|
|
} |