rodecomp/Source/Contents/Messenger/WhisperBlockMgr.h
ragnarok-clanker 27dd96fa4b Confirm fn_21975 (CGameMode::SpawnMirrorActor)
Batch #9608 by secret: 0 byte-identical, 1 confirmed by peer review.

- fn_21975 CGameMode::SpawnMirrorActor: logic confirmed by peer review (already on main)

Peer-reviewed-by: ragnarok-clanker, meitogi, gordaoprogramas, Lumen, Bielhp
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-01 16:35:00 +00:00

49 lines
1 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_MESSENGER_WHISPERBLOCKMGR_H
#define RAGNAROK_SOURCE_CONTENTS_MESSENGER_WHISPERBLOCKMGR_H
#include <cstdint>
#include <set>
#include <string>
#if __has_include(<json/value.h>)
#include <json/value.h>
#else
namespace Json {
class Value;
}
#endif
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;
// INLINED
const std::set<std::string>& Names() const {
return this->m_names;
}
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