1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00
openmw/components/esm3/queststate.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
452 B
C++
Raw Normal View History

#include "queststate.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
namespace ESM
{
void QuestState::load(ESMReader& esm)
{
mTopic = esm.getHNRefId("YETO");
2013-12-03 12:51:44 +00:00
esm.getHNOT(mState, "QSTA");
esm.getHNOT(mFinished, "QFIN");
}
void QuestState::save(ESMWriter& esm) const
{
esm.writeHNRefId("YETO", mTopic);
2013-12-03 12:51:44 +00:00
esm.writeHNT("QSTA", mState);
esm.writeHNT("QFIN", mFinished);
2015-03-11 14:54:45 +00:00
}
}