1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 20:49:56 +00:00
openmw-tes3mp/components/esm/dialoguestate.cpp
2014-02-16 12:54:27 +01:00

21 lines
No EOL
453 B
C++

#include "dialoguestate.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
void ESM::DialogueState::load (ESMReader &esm)
{
while (esm.isNextSub ("TOPI"))
mKnownTopics.push_back (esm.getHString());
}
void ESM::DialogueState::save (ESMWriter &esm) const
{
for (std::vector<std::string>::const_iterator iter (mKnownTopics.begin());
iter!=mKnownTopics.end(); ++iter)
{
esm.writeHNString ("TOPI", *iter);
}
}