mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 20:49:56 +00:00
21 lines
No EOL
453 B
C++
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);
|
|
|
|
}
|
|
} |