mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 17:49:55 +00:00
19 lines
405 B
C++
19 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);
|
|
}
|