@ -150,6 +150,7 @@ CSMWorld::Data::Data() : mRefs (mCells)
mFilters.addColumn (new StringIdColumn<CSMFilter::Filter>);
mFilters.addColumn (new RecordStateColumn<CSMFilter::Filter>);
mFilters.addColumn (new DescriptionColumn<CSMFilter::Filter>);
addModel (new IdTable (&mGlobals), UniversalId::Type_Globals, UniversalId::Type_Global);
addModel (new IdTable (&mGmsts), UniversalId::Type_Gmsts, UniversalId::Type_Gmst);
@ -7,14 +7,17 @@
void ESM::Filter::load (ESMReader& esm)
{
mFilter = esm.getHNString ("FILT");
mDescription = esm.getHNString ("DESC");
}
void ESM::Filter::save (ESMWriter& esm)
esm.writeHNCString ("FILT", mFilter);
esm.writeHNCString ("DESC", mDescription);
void ESM::Filter::blank()
mFilter.clear();
mDescription.clear();
@ -12,6 +12,8 @@ namespace ESM
std::string mId;
std::string mDescription;
std::string mFilter;
void load (ESMReader& esm);