Imported Upstream version 0.26.0

This commit is contained in:
Bret Curtis 2013-10-17 16:37:22 +02:00
commit 9a2b6c69b6
1398 changed files with 212217 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#include "spelllist.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
namespace ESM {
void SpellList::load(ESMReader &esm)
{
while (esm.isNextSub("NPCS")) {
mList.push_back(esm.getHString());
}
}
void SpellList::save(ESMWriter &esm)
{
for (std::vector<std::string>::iterator it = mList.begin(); it != mList.end(); ++it) {
esm.writeHNString("NPCS", *it, 32);
}
}
}