1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
OpenMW/components/esm/loadbsgn.cpp

36 lines
630 B
C++
Raw Normal View History

#include "loadbsgn.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
2012-09-17 11:37:50 +04:00
namespace ESM
{
void BirthSign::load(ESMReader &esm)
{
2012-09-17 11:37:50 +04:00
mName = esm.getHNString("FNAM");
mTexture = esm.getHNOString("TNAM");
mDescription = esm.getHNOString("DESC");
2012-09-17 11:37:50 +04:00
mPowers.load(esm);
}
2012-09-17 11:37:50 +04:00
void BirthSign::save(ESMWriter &esm)
{
2012-09-17 11:37:50 +04:00
esm.writeHNCString("FNAM", mName);
esm.writeHNOCString("TNAM", mTexture);
esm.writeHNOCString("DESC", mDescription);
2012-09-17 11:37:50 +04:00
mPowers.save(esm);
}
2013-04-07 20:26:39 +02:00
void BirthSign::blank()
{
mName.clear();
mDescription.clear();
mTexture.clear();
mPowers.mList.clear();
}
}