mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
24 lines
369 B
C++
24 lines
369 B
C++
#include "loadspel.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
#include "esmwriter.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
void Spell::load(ESMReader &esm)
|
|
{
|
|
mName = esm.getHNOString("FNAM");
|
|
esm.getHNT(mData, "SPDT", 12);
|
|
mEffects.load(esm);
|
|
}
|
|
|
|
void Spell::save(ESMWriter &esm)
|
|
{
|
|
esm.writeHNOCString("FNAM", mName);
|
|
esm.writeHNT("SPDT", mData, 12);
|
|
mEffects.save(esm);
|
|
}
|
|
|
|
}
|