2014-08-03 08:12:03 +00:00
|
|
|
|
|
|
|
#include "debugprofile.hpp"
|
|
|
|
|
|
|
|
#include "esmreader.hpp"
|
|
|
|
#include "esmwriter.hpp"
|
|
|
|
#include "defs.hpp"
|
|
|
|
|
|
|
|
unsigned int ESM::DebugProfile::sRecordId = REC_DBGP;
|
|
|
|
|
|
|
|
void ESM::DebugProfile::load (ESMReader& esm)
|
|
|
|
{
|
|
|
|
mDescription = esm.getHNString ("DESC");
|
2014-08-22 11:38:03 +00:00
|
|
|
mScriptText = esm.getHNString ("SCRP");
|
2014-08-15 10:27:08 +00:00
|
|
|
esm.getHNT (mFlags, "FLAG");
|
2014-08-03 08:12:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void ESM::DebugProfile::save (ESMWriter& esm) const
|
|
|
|
{
|
|
|
|
esm.writeHNCString ("DESC", mDescription);
|
2014-08-22 11:38:03 +00:00
|
|
|
esm.writeHNCString ("SCRP", mScriptText);
|
2014-08-15 10:27:08 +00:00
|
|
|
esm.writeHNT ("FLAG", mFlags);
|
2014-08-03 08:12:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void ESM::DebugProfile::blank()
|
|
|
|
{
|
|
|
|
mDescription.clear();
|
2014-08-22 11:38:03 +00:00
|
|
|
mScriptText.clear();
|
2014-08-15 10:27:08 +00:00
|
|
|
mFlags = 0;
|
2014-08-03 08:12:03 +00:00
|
|
|
}
|