From bf2a8a6c680273b280202e67e703037da2173a5f Mon Sep 17 00:00:00 2001 From: staphen Date: Sat, 29 Nov 2025 12:38:11 -0500 Subject: [PATCH] Add DVL_API_FOR_TEST to symbols used by townerdat_test.cpp --- Source/townerdat.hpp | 3 ++- Source/towners.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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;