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.
openmw/components/esm3/queststate.cpp

24 lines
454 B
C++

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