mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 21:19:57 +00:00
23 lines
371 B
C++
23 lines
371 B
C++
#include "loadspel.hpp"
|
|
|
|
#include "esm_reader.hpp"
|
|
#include "esm_writer.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);
|
|
}
|
|
|
|
}
|