mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 17:19:56 +00:00
45b6538820
forcing value to bool 'true' or 'false'
26 lines
477 B
C++
26 lines
477 B
C++
#include "loadstat.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
#include "esmwriter.hpp"
|
|
#include "defs.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
unsigned int Static::sRecordId = REC_STAT;
|
|
|
|
void Static::load(ESMReader &esm)
|
|
{
|
|
mPersistent = (esm.getRecordFlags() & 0x0400) != 0;
|
|
|
|
mModel = esm.getHNString("MODL");
|
|
}
|
|
void Static::save(ESMWriter &esm) const
|
|
{
|
|
esm.writeHNCString("MODL", mModel);
|
|
}
|
|
|
|
void Static::blank()
|
|
{
|
|
mModel.clear();
|
|
}
|
|
}
|