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

24 lines
452 B
C++
Raw Normal View History

#include "queststate.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
namespace ESM
{
2022-09-22 18:26:05 +00:00
void QuestState::load(ESMReader& esm)
{
mTopic = esm.getHNRefId("YETO");
2022-09-22 18:26:05 +00:00
esm.getHNOT(mState, "QSTA");
esm.getHNOT(mFinished, "QFIN");
}
2022-09-22 18:26:05 +00:00
void QuestState::save(ESMWriter& esm) const
{
esm.writeHNRefId("YETO", mTopic);
2022-09-22 18:26:05 +00:00
esm.writeHNT("QSTA", mState);
esm.writeHNT("QFIN", mFinished);
}
}