forked from mirror/openmw-tes3mp
19 lines
311 B
C++
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);
|
|
}
|
|
|
|
}
|