forked from mirror/openmw-tes3mp
25 lines
425 B
C++
25 lines
425 B
C++
|
|
||
|
#include "globalscript.hpp"
|
||
|
|
||
|
#include "esmreader.hpp"
|
||
|
#include "esmwriter.hpp"
|
||
|
|
||
|
void ESM::GlobalScript::load (ESMReader &esm)
|
||
|
{
|
||
|
mId = esm.getHNString ("NAME");
|
||
|
|
||
|
mLocals.load (esm);
|
||
|
|
||
|
mRunning = 0;
|
||
|
esm.getHNOT (mRunning, "RUN_");
|
||
|
}
|
||
|
|
||
|
void ESM::GlobalScript::save (ESMWriter &esm) const
|
||
|
{
|
||
|
esm.writeHNString ("NAME", mId);
|
||
|
|
||
|
mLocals.save (esm);
|
||
|
|
||
|
if (mRunning)
|
||
|
esm.writeHNT ("RUN_", mRunning);
|
||
|
}
|