Browse Source

Add DVL_API_FOR_TEST to symbols used by townerdat_test.cpp

pull/8295/head
staphen 4 months ago committed by Anders Jenbo
parent
commit
bf2a8a6c68
  1. 3
      Source/townerdat.hpp
  2. 3
      Source/towners.h

3
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<TownerDataEntry> TownersDataEntries;
extern DVL_API_FOR_TEST std::vector<TownerDataEntry> 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;

3
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;

Loading…
Cancel
Save