1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/components/esm/loadbsgn.cpp

28 lines
481 B
C++
Raw Normal View History

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