display quest names in client's native language in game info window

This commit is contained in:
Martin Michelsen
2025-10-11 17:37:35 -07:00
parent c2008f1f9c
commit 47f7e71ae9
3 changed files with 24 additions and 1 deletions
+3
View File
@@ -94,6 +94,7 @@ struct Quest {
QuestMetadata meta;
mutable std::shared_ptr<const SuperMap> supermap;
std::map<uint32_t, std::shared_ptr<const VersionedQuest>> versions;
std::array<std::string, 8> names_by_language;
Quest() = delete;
explicit Quest(std::shared_ptr<const VersionedQuest> initial_version);
@@ -106,6 +107,8 @@ struct Quest {
std::shared_ptr<const SuperMap> get_supermap(int64_t random_seed) const;
const std::string& name_for_language(uint8_t language) const;
void add_version(std::shared_ptr<const VersionedQuest> vq);
bool has_version(Version v, uint8_t language) const;
bool has_version_any_language(Version v) const;