mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
20 lines
310 B
C++
20 lines
310 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.writeHNOString("FNAM", name);
|
|
esm.writeHNT("SPDT", data, 12);
|
|
effects.save(esm);
|
|
}
|
|
|
|
}
|