2013-11-30 13:41:12 +00:00
|
|
|
#include "queststate.hpp"
|
|
|
|
|
|
|
|
#include "esmreader.hpp"
|
|
|
|
#include "esmwriter.hpp"
|
|
|
|
|
2022-04-11 22:18:39 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
|
|
|
void QuestState::load(ESMReader& esm)
|
2013-11-30 13:41:12 +00:00
|
|
|
{
|
2023-02-12 18:36:56 +00:00
|
|
|
mTopic = esm.getHNRefId("YETO");
|
2013-12-03 12:51:44 +00:00
|
|
|
esm.getHNOT(mState, "QSTA");
|
2013-11-30 13:41:12 +00:00
|
|
|
esm.getHNOT(mFinished, "QFIN");
|
|
|
|
}
|
|
|
|
|
2022-04-11 22:18:39 +00:00
|
|
|
void QuestState::save(ESMWriter& esm) const
|
2013-11-30 13:41:12 +00:00
|
|
|
{
|
2023-02-12 18:36:56 +00:00
|
|
|
esm.writeHNRefId("YETO", mTopic);
|
2013-12-03 12:51:44 +00:00
|
|
|
esm.writeHNT("QSTA", mState);
|
2013-11-30 13:41:12 +00:00
|
|
|
esm.writeHNT("QFIN", mFinished);
|
2015-03-11 14:54:45 +00:00
|
|
|
}
|
2022-04-11 22:18:39 +00:00
|
|
|
|
|
|
|
}
|