mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 23:36:59 -04:00
21 lines
392 B
C++
21 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);
|
|
}
|
|
}
|
|
}
|