1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-17 19:10:24 +00:00
OpenMW/components/esm/loadsscr.cpp

21 lines
342 B
C++
Raw Normal View History

#include "loadsscr.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
2012-09-17 07:37:50 +00:00
namespace ESM
{
void StartScript::load(ESMReader &esm)
{
mData = esm.getHNString("DATA");
2012-09-17 07:37:50 +00:00
mScript = esm.getHNString("NAME");
}
void StartScript::save(ESMWriter &esm) const
{
esm.writeHNString("DATA", mData);
2012-09-17 07:37:50 +00:00
esm.writeHNString("NAME", mScript);
}
}