Merge branch 'you_complete_my_sandwiches' into 'master'

Restore dialogue autocompletion in the console

See merge request OpenMW/openmw!1718
pull/3226/head
psi29a 3 years ago
commit 5728bfeb49

@ -1072,6 +1072,13 @@ namespace MWWorld
return true; return true;
} }
void Store<ESM::Dialogue>::listIdentifier(std::vector<std::string>& list) const
{
list.reserve(list.size() + getSize());
for (const auto& dialogue : mShared)
list.push_back(dialogue->mId);
}
const MWDialogue::KeywordSearch<std::string, int>& Store<ESM::Dialogue>::getDialogIdKeywordSearch() const const MWDialogue::KeywordSearch<std::string, int>& Store<ESM::Dialogue>::getDialogIdKeywordSearch() const
{ {
if (mKeywordSearchModFlag) if (mKeywordSearchModFlag)

@ -474,6 +474,8 @@ namespace MWWorld
RecordId load(ESM::ESMReader &esm) override; RecordId load(ESM::ESMReader &esm) override;
void listIdentifier(std::vector<std::string> &list) const override;
const MWDialogue::KeywordSearch<std::string, int>& getDialogIdKeywordSearch() const; const MWDialogue::KeywordSearch<std::string, int>& getDialogIdKeywordSearch() const;
}; };

Loading…
Cancel
Save