display quest names in client's native language in game info window
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user