1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00
OpenMW/components/esm/loadbsgn.cpp
2012-09-17 11:37:50 +04:00

28 lines
481 B
C++

#include "loadbsgn.hpp"
#include "esm_reader.hpp"
#include "esm_writer.hpp"
namespace ESM
{
void BirthSign::load(ESMReader &esm)
{
mName = esm.getHNString("FNAM");
mTexture = esm.getHNOString("TNAM");
mDescription = esm.getHNOString("DESC");
mPowers.load(esm);
}
void BirthSign::save(ESMWriter &esm)
{
esm.writeHNCString("FNAM", mName);
esm.writeHNOCString("TNAM", mTexture);
esm.writeHNOCString("DESC", mDescription);
mPowers.save(esm);
}
}