mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 11:59:55 +00:00
24 lines
457 B
C++
24 lines
457 B
C++
#include "loadrace.hpp"
|
|
|
|
#include "esm_reader.hpp"
|
|
#include "esm_writer.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
void Race::load(ESMReader &esm)
|
|
{
|
|
mName = esm.getHNString("FNAM");
|
|
esm.getHNT(mData, "RADT", 140);
|
|
mPowers.load(esm);
|
|
mDescription = esm.getHNOString("DESC");
|
|
}
|
|
void Race::save(ESMWriter &esm)
|
|
{
|
|
esm.writeHNCString("FNAM", mName);
|
|
esm.writeHNT("RADT", mData, 140);
|
|
mPowers.save(esm);
|
|
esm.writeHNOString("DESC", mDescription);
|
|
}
|
|
|
|
}
|