You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
492 B
C++
26 lines
492 B
C++
#include "effectlist.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
#include "esmwriter.hpp"
|
|
|
|
namespace ESM {
|
|
|
|
void EffectList::load(ESMReader &esm)
|
|
{
|
|
mList.clear();
|
|
ENAMstruct s;
|
|
while (esm.isNextSub("ENAM")) {
|
|
esm.getHT(s, 24);
|
|
mList.push_back(s);
|
|
}
|
|
}
|
|
|
|
void EffectList::save(ESMWriter &esm) const
|
|
{
|
|
for (std::vector<ENAMstruct>::const_iterator it = mList.begin(); it != mList.end(); ++it) {
|
|
esm.writeHNT<ENAMstruct>("ENAM", *it, 24);
|
|
}
|
|
}
|
|
|
|
} // end namespace
|