You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
630 B
C++
36 lines
630 B
C++
#include "loadbsgn.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
#include "esmwriter.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);
|
|
}
|
|
|
|
void BirthSign::blank()
|
|
{
|
|
mName.clear();
|
|
mDescription.clear();
|
|
mTexture.clear();
|
|
mPowers.mList.clear();
|
|
}
|
|
|
|
}
|