[Code] PlayerEventLogs Global to Singleton Cleanup

This commit is contained in:
Kinglykrab
2025-06-20 21:22:14 -04:00
committed by Chris Miles
parent c0bb32ed12
commit 7debd578a9
40 changed files with 92 additions and 103 deletions
+6 -2
View File
@@ -96,6 +96,12 @@ public:
std::vector<PlayerEventAaPurchaseRepository::PlayerEventAaPurchase> aa_purchase;
};
static PlayerEventLogs* Instance()
{
static PlayerEventLogs instance;
return &instance;
}
private:
struct EtlSettings {
bool enabled;
@@ -129,6 +135,4 @@ public:
std::map<PlayerEvent::EventType, EtlSettings> &GetEtlSettings() { return m_etl_settings;}
};
extern PlayerEventLogs player_event_logs;
#endif //EQEMU_PLAYER_EVENT_LOGS_H