mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 18:37:08 +00:00
20 lines
405 B
C++
20 lines
405 B
C++
|
|
#include "queststate.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
#include "esmwriter.hpp"
|
|
|
|
void ESM::QuestState::load (ESMReader &esm)
|
|
{
|
|
mTopic = esm.getHNString ("YETO");
|
|
esm.getHNOT (mState, "QSTA");
|
|
esm.getHNOT (mFinished, "QFIN");
|
|
}
|
|
|
|
void ESM::QuestState::save (ESMWriter &esm) const
|
|
{
|
|
esm.writeHNString ("YETO", mTopic);
|
|
esm.writeHNT ("QSTA", mState);
|
|
esm.writeHNT ("QFIN", mFinished);
|
|
}
|