2013-07-22 18:50:04 +00:00
|
|
|
|
|
|
|
#include "filter.hpp"
|
|
|
|
|
|
|
|
#include "esmreader.hpp"
|
|
|
|
#include "esmwriter.hpp"
|
2013-09-27 11:56:40 +00:00
|
|
|
#include "defs.hpp"
|
|
|
|
|
|
|
|
unsigned int ESM::Filter::sRecordId = REC_FILT;
|
2013-07-22 18:50:04 +00:00
|
|
|
|
|
|
|
void ESM::Filter::load (ESMReader& esm)
|
|
|
|
{
|
|
|
|
mFilter = esm.getHNString ("FILT");
|
2013-08-09 11:45:50 +00:00
|
|
|
mDescription = esm.getHNString ("DESC");
|
2013-07-22 18:50:04 +00:00
|
|
|
}
|
|
|
|
|
2013-09-16 10:32:35 +00:00
|
|
|
void ESM::Filter::save (ESMWriter& esm) const
|
2013-07-22 18:50:04 +00:00
|
|
|
{
|
|
|
|
esm.writeHNCString ("FILT", mFilter);
|
2013-08-09 11:45:50 +00:00
|
|
|
esm.writeHNCString ("DESC", mDescription);
|
2013-07-22 18:50:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void ESM::Filter::blank()
|
|
|
|
{
|
|
|
|
mFilter.clear();
|
2013-08-09 11:45:50 +00:00
|
|
|
mDescription.clear();
|
2013-07-22 18:50:04 +00:00
|
|
|
}
|