openmw-tes3coop/components/esm/loadsscr.cpp

22 lines
352 B
C++
Raw Normal View History

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