mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 23:49:55 +00:00
30 lines
602 B
C++
30 lines
602 B
C++
#include "loadacti.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
#include "esmwriter.hpp"
|
|
#include "defs.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
unsigned int Activator::sRecordId = REC_ACTI;
|
|
|
|
void Activator::load(ESMReader &esm)
|
|
{
|
|
mModel = esm.getHNString("MODL");
|
|
mName = esm.getHNString("FNAM");
|
|
mScript = esm.getHNOString("SCRI");
|
|
}
|
|
void Activator::save(ESMWriter &esm) const
|
|
{
|
|
esm.writeHNCString("MODL", mModel);
|
|
esm.writeHNCString("FNAM", mName);
|
|
esm.writeHNOCString("SCRI", mScript);
|
|
}
|
|
|
|
void Activator::blank()
|
|
{
|
|
mName.clear();
|
|
mScript.clear();
|
|
mModel.clear();
|
|
}
|
|
}
|