|
|
@ -3,6 +3,7 @@
|
|
|
|
#include "esmreader.hpp"
|
|
|
|
#include "esmreader.hpp"
|
|
|
|
#include "esmwriter.hpp"
|
|
|
|
#include "esmwriter.hpp"
|
|
|
|
#include "defs.hpp"
|
|
|
|
#include "defs.hpp"
|
|
|
|
|
|
|
|
#include "util.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -11,6 +12,10 @@ namespace ESM
|
|
|
|
void BirthSign::load(ESMReader &esm)
|
|
|
|
void BirthSign::load(ESMReader &esm)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mPowers.mList.clear();
|
|
|
|
mPowers.mList.clear();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mIsDeleted = readDeleSubRecord(esm);
|
|
|
|
|
|
|
|
mId = esm.getHNString("NAME");
|
|
|
|
|
|
|
|
|
|
|
|
while (esm.hasMoreSubs())
|
|
|
|
while (esm.hasMoreSubs())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
esm.getSubName();
|
|
|
|
esm.getSubName();
|
|
|
@ -37,6 +42,11 @@ void BirthSign::load(ESMReader &esm)
|
|
|
|
|
|
|
|
|
|
|
|
void BirthSign::save(ESMWriter &esm) const
|
|
|
|
void BirthSign::save(ESMWriter &esm) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (mIsDeleted)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
writeDeleSubRecord(esm);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
esm.writeHNCString("NAME", mId);
|
|
|
|
esm.writeHNOCString("FNAM", mName);
|
|
|
|
esm.writeHNOCString("FNAM", mName);
|
|
|
|
esm.writeHNOCString("TNAM", mTexture);
|
|
|
|
esm.writeHNOCString("TNAM", mTexture);
|
|
|
|
esm.writeHNOCString("DESC", mDescription);
|
|
|
|
esm.writeHNOCString("DESC", mDescription);
|
|
|
@ -50,6 +60,7 @@ void BirthSign::save(ESMWriter &esm) const
|
|
|
|
mDescription.clear();
|
|
|
|
mDescription.clear();
|
|
|
|
mTexture.clear();
|
|
|
|
mTexture.clear();
|
|
|
|
mPowers.mList.clear();
|
|
|
|
mPowers.mList.clear();
|
|
|
|
|
|
|
|
mIsDeleted = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|