diff options
Diffstat (limited to 'include/quest.hpp')
-rw-r--r-- | include/quest.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/quest.hpp b/include/quest.hpp index be9755f..3358d8f 100644 --- a/include/quest.hpp +++ b/include/quest.hpp @@ -71,6 +71,13 @@ public: * @return if the quest is active. */ static bool hasQuest(std::string title); + + static inline auto getQuestTitles(void) { + std::forward_list<std::string> titles; + for (const auto& q : current) + titles.emplace_front(q.name); + return titles;
+ } }; #endif // QUEST_HPP_ |