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.
25 lines
463 B
C++
25 lines
463 B
C++
12 years ago
|
#include "effectlist.hpp"
|
||
|
|
||
|
#include "esm_reader.hpp"
|
||
|
#include "esm_writer.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
|