added description field to filter record

actorid
Marc Zinnschlag 12 years ago
parent f6226e4859
commit a95715b61d

@ -150,6 +150,7 @@ CSMWorld::Data::Data() : mRefs (mCells)
mFilters.addColumn (new StringIdColumn<CSMFilter::Filter>); mFilters.addColumn (new StringIdColumn<CSMFilter::Filter>);
mFilters.addColumn (new RecordStateColumn<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 (&mGlobals), UniversalId::Type_Globals, UniversalId::Type_Global);
addModel (new IdTable (&mGmsts), UniversalId::Type_Gmsts, UniversalId::Type_Gmst); addModel (new IdTable (&mGmsts), UniversalId::Type_Gmsts, UniversalId::Type_Gmst);

@ -7,14 +7,17 @@
void ESM::Filter::load (ESMReader& esm) void ESM::Filter::load (ESMReader& esm)
{ {
mFilter = esm.getHNString ("FILT"); mFilter = esm.getHNString ("FILT");
mDescription = esm.getHNString ("DESC");
} }
void ESM::Filter::save (ESMWriter& esm) void ESM::Filter::save (ESMWriter& esm)
{ {
esm.writeHNCString ("FILT", mFilter); esm.writeHNCString ("FILT", mFilter);
esm.writeHNCString ("DESC", mDescription);
} }
void ESM::Filter::blank() void ESM::Filter::blank()
{ {
mFilter.clear(); mFilter.clear();
mDescription.clear();
} }

@ -12,6 +12,8 @@ namespace ESM
{ {
std::string mId; std::string mId;
std::string mDescription;
std::string mFilter; std::string mFilter;
void load (ESMReader& esm); void load (ESMReader& esm);

Loading…
Cancel
Save