1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

added description field to filter record

This commit is contained in:
Marc Zinnschlag 2013-08-09 13:45:50 +02:00
parent f6226e4859
commit a95715b61d
3 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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();
}

View File

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