mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-28 18:45:33 +00:00
20 lines
392 B
C++
20 lines
392 B
C++
#include "loadacti.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
void Activator::load(ESMReader &esm)
|
|
{
|
|
model = esm.getHNString("MODL");
|
|
name = esm.getHNString("FNAM");
|
|
script = esm.getHNOString("SCRI");
|
|
}
|
|
void Activator::save(ESMWriter &esm)
|
|
{
|
|
esm.writeHNString("MODL", model);
|
|
esm.writeHNString("FNAM", name);
|
|
if (!script.empty())
|
|
{
|
|
esm.writeHNString("SCRI", script);
|
|
}
|
|
}
|
|
}
|