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