forked from mirror/openmw-tes3mp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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);
|
|
}
|