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.
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_PARTY_UIREQUESTJOINPARTYMGR_H
|
|
#define RAGNAROK_SOURCE_UI_PARTY_UIREQUESTJOINPARTYMGR_H
|
|
|
|
#include <cstdint>
|
|
#include <list>
|
|
|
|
class WindowManagerWindows;
|
|
|
|
struct PartyJoinRequest {
|
|
char name[24];
|
|
std::uint32_t characterId;
|
|
std::uint32_t accountId;
|
|
std::int16_t level;
|
|
std::int16_t job;
|
|
};
|
|
static_assert(sizeof(PartyJoinRequest) == 36);
|
|
|
|
class UIRequestJoinPartyMgr {
|
|
public:
|
|
explicit UIRequestJoinPartyMgr(WindowManagerWindows& windows);
|
|
virtual ~UIRequestJoinPartyMgr();
|
|
static bool Initialize(WindowManagerWindows& windows);
|
|
static void Shutdown();
|
|
void Add(std::uint32_t accountId, std::uint32_t characterId, const char* name, std::int16_t job, std::int16_t level);
|
|
void Advance();
|
|
void Block(std::uint32_t accountId);
|
|
|
|
private:
|
|
/* 0004 */ bool m_enabled;
|
|
/* 0008 */ std::list<PartyJoinRequest> m_pending;
|
|
/* 0010 */ std::list<std::uint32_t> m_blocked;
|
|
WindowManagerWindows* m_windows;
|
|
};
|
|
|
|
extern UIRequestJoinPartyMgr* g_requestJoinPartyMgr;
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(UIRequestJoinPartyMgr) == 28);
|
|
#endif
|
|
|
|
#endif
|