Batch #904 by ragnarok-clanker: no function's compiled code changes; checked with 3 compiled unit(s), including every includer of Source/Contents/MessageTable.h, Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Emblems/EmblemDataMgr.h, Source/Contents/Hotkeys/UserHotkeyMgr.h, Source/Contents/Messenger/WhisperBlockMgr.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/UserData/AccountLinkedUserDataMgr.h, Source/Contents/UserData/CharacterLinkedUserDataMgr.h, Source/Network/TextEncoding.h, Source/Network/Http/CURLMgr.h, Source/Render/Textures/Texture.h, Source/UI/Layout/SnapMgr.h, Source/UI/Party/UIRequestJoinPartyMgr.h, Source/UI/Window/FrameFocus.h, Source/UI/Window/UIWindow.h, Source/Utility/Async/NMessageMgr.h.
37 lines
865 B
C++
37 lines
865 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_MESSENGER_WHISPERBLOCKMGR_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_MESSENGER_WHISPERBLOCKMGR_H
|
|
|
|
#include <cstdint>
|
|
#include <json/value.h>
|
|
#include <set>
|
|
#include <string>
|
|
|
|
class CWhisperBlockMgr {
|
|
public:
|
|
CWhisperBlockMgr();
|
|
virtual ~CWhisperBlockMgr();
|
|
static bool Initialize();
|
|
static void Shutdown();
|
|
void Clear();
|
|
void Add(std::string name);
|
|
bool Contains(std::string name) const;
|
|
void Remove(std::string name);
|
|
void Reset();
|
|
void Export(Json::Value& values) const;
|
|
|
|
protected:
|
|
friend class CAccountLinkedUserDataMgr;
|
|
|
|
/* 0008 */ bool m_enabled;
|
|
/* 0009 */ bool m_tracking;
|
|
/* 0010 */ std::uint64_t m_changes;
|
|
/* 0018 */ std::set<std::string> m_names;
|
|
};
|
|
|
|
extern CWhisperBlockMgr* g_whisperBlockMgr;
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CWhisperBlockMgr) == 32);
|
|
#endif
|
|
|
|
#endif
|