mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 12:53:51 +00:00
added description field to filter record
This commit is contained in:
parent
f6226e4859
commit
a95715b61d
3 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue