mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 21:19:57 +00:00
24 lines
461 B
C++
24 lines
461 B
C++
#include "effectlist.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
#include "esmwriter.hpp"
|
|
|
|
namespace ESM {
|
|
|
|
void EffectList::load(ESMReader &esm)
|
|
{
|
|
ENAMstruct s;
|
|
while (esm.isNextSub("ENAM")) {
|
|
esm.getHT(s, 24);
|
|
mList.push_back(s);
|
|
}
|
|
}
|
|
|
|
void EffectList::save(ESMWriter &esm)
|
|
{
|
|
for (std::vector<ENAMstruct>::iterator it = mList.begin(); it != mList.end(); ++it) {
|
|
esm.writeHNT<ENAMstruct>("ENAM", *it, 24);
|
|
}
|
|
}
|
|
|
|
} // end namespace
|