Batch #1065 by ragnarok-clanker: no function's compiled code changes; checked with 92 compiled unit(s), including every includer of Source/UI/Buttons/UIBmpTextButton.h, Source/UI/Chat/ChatNotifications.h, Source/UI/Cooldowns/CooldownDrawing.h, Source/UI/Cooldowns/CooldownState.h, Source/UI/Edit/ItemTagRetirement.h, Source/UI/Layout/SnapRectangle.h, Source/UI/Lists/UIListBoxEx.h, Source/UI/MiniPartyGrid.h, Source/UI/Party/UIAdvenPartyBoardWnd.h, Source/UI/Party/UIRequestJoinPartyMgr.h, Source/UI/Shop/PriceColor.h, Source/UI/Shortcuts/ShortcutCooldowns.h, Source/UI/Shortcuts/ShortcutGrid.h, Source/UI/Text/TextMarkup.h, Source/UI/Text/UITransBalloonText.h, Source/UI/Window/FrameTextCache.h, Source/UI/Window/UIWindow.h, Source/UI/Window/WindowAncestry.h, Source/UI/Window/WindowRegistration.h.
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_PARTY_UIREQUESTJOINPARTYMGR_H
|
|
#define RAGNAROK_SOURCE_UI_PARTY_UIREQUESTJOINPARTYMGR_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <list>
|
|
|
|
class WindowManagerWindows;
|
|
|
|
struct PartyJoinRequest {
|
|
/* 0000 */ char name[24];
|
|
/* 0018 */ std::uint32_t characterId;
|
|
/* 001C */ std::uint32_t accountId;
|
|
/* 0020 */ std::int16_t level;
|
|
/* 0022 */ 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(offsetof(PartyJoinRequest, characterId) == 0x18);
|
|
static_assert(offsetof(PartyJoinRequest, accountId) == 0x1C);
|
|
static_assert(offsetof(PartyJoinRequest, level) == 0x20);
|
|
static_assert(offsetof(PartyJoinRequest, job) == 0x22);
|
|
static_assert(sizeof(UIRequestJoinPartyMgr) == 28);
|
|
#endif
|
|
|
|
#endif
|