diff --git a/Source/townerdat.hpp b/Source/townerdat.hpp index 2b76465a5..948ac885b 100644 --- a/Source/townerdat.hpp +++ b/Source/townerdat.hpp @@ -15,6 +15,7 @@ #include "objdat.h" #include "textdat.h" #include "towners.h" +#include "utils/attributes.h" namespace devilution { @@ -35,7 +36,7 @@ struct TownerDataEntry { }; /** Contains the data for all towners loaded from TSV. */ -extern std::vector TownersDataEntries; +extern DVL_API_FOR_TEST std::vector TownersDataEntries; /** Contains the quest dialog table loaded from TSV. Indexed by [towner_type][quest_id]. */ extern std::unordered_map<_talker_id, std::array<_speech_id, MAXQUESTS>> TownerQuestDialogTable; diff --git a/Source/towners.h b/Source/towners.h index 026de3dc2..8cbf7916d 100644 --- a/Source/towners.h +++ b/Source/towners.h @@ -19,6 +19,7 @@ #include "levels/dun_tile.hpp" #include "player.h" #include "quests.h" +#include "utils/attributes.h" namespace devilution { @@ -41,7 +42,7 @@ enum _talker_id : uint8_t { }; // Runtime mappings built from TSV data -extern std::unordered_map<_talker_id, std::string> TownerLongNames; // Maps towner type enum to display name +extern DVL_API_FOR_TEST std::unordered_map<_talker_id, std::string> TownerLongNames; // Maps towner type enum to display name struct Towner { OptionalOwnedClxSpriteList ownedAnim;