1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/components/esm3/queststate.cpp
elsid 6d261d38dd
Add functions to read and write ESM::RefId and use them
To be later changed with another implementation.
2023-02-13 22:07:58 +01:00

24 lines
452 B
C++

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