1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 17:23:50 +00:00
openmw-tes3mp/components/esm/loadspel.cpp

19 lines
311 B
C++

#include "loadspel.hpp"
namespace ESM
{
void Spell::load(ESMReader &esm)
{
name = esm.getHNOString("FNAM");
esm.getHNT(data, "SPDT", 12);
effects.load(esm);
}
void Spell::save(ESMWriter &esm)
{
esm.writeHNOCString("FNAM", name);
esm.writeHNT("SPDT", data, 12);
effects.save(esm);
}
}