Skip to content

Commit bf2a8a6

Browse files
StephenCWillsAJenbo
authored andcommitted
Add DVL_API_FOR_TEST to symbols used by townerdat_test.cpp
1 parent d8b1f00 commit bf2a8a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Source/townerdat.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "objdat.h"
1616
#include "textdat.h"
1717
#include "towners.h"
18+
#include "utils/attributes.h"
1819

1920
namespace devilution {
2021

@@ -35,7 +36,7 @@ struct TownerDataEntry {
3536
};
3637

3738
/** Contains the data for all towners loaded from TSV. */
38-
extern std::vector<TownerDataEntry> TownersDataEntries;
39+
extern DVL_API_FOR_TEST std::vector<TownerDataEntry> TownersDataEntries;
3940

4041
/** Contains the quest dialog table loaded from TSV. Indexed by [towner_type][quest_id]. */
4142
extern std::unordered_map<_talker_id, std::array<_speech_id, MAXQUESTS>> TownerQuestDialogTable;

Source/towners.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "levels/dun_tile.hpp"
2020
#include "player.h"
2121
#include "quests.h"
22+
#include "utils/attributes.h"
2223

2324
namespace devilution {
2425

@@ -41,7 +42,7 @@ enum _talker_id : uint8_t {
4142
};
4243

4344
// Runtime mappings built from TSV data
44-
extern std::unordered_map<_talker_id, std::string> TownerLongNames; // Maps towner type enum to display name
45+
extern DVL_API_FOR_TEST std::unordered_map<_talker_id, std::string> TownerLongNames; // Maps towner type enum to display name
4546

4647
struct Towner {
4748
OptionalOwnedClxSpriteList ownedAnim;

0 commit comments

Comments
 (0)