Batch #10019 by ragnarok-clanker: forced by an admin (23 lower score(s), 187 changed function(s)); checked with 447 compiled unit(s), including every includer of Source/Client/Input/Language.h, Source/Client/Mode/ModeDragState.h, Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Emblems/EmblemCache.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/Party/AgencyRequestContext.h, Source/Contents/Party/ChangePartyMasterAsyncWork.h, Source/Contents/Party/LoadMyPartyAsyncWork.h, Source/Contents/Party/LoadPartyInfoAsyncWork.h, Source/Contents/Party/LoadPartyListAsyncWork.h, Source/Contents/Party/PartyInvitation.h, Source/Contents/Party/RegisterPartyAsyncWork.h, Source/Contents/Party/StopRecruitingAsyncWork.h, Source/Contents/Skills/PlayerSkillBundle.h, Source/Contents/UserData/CharacterConfigLoad.h, Source/Network/Packets/PartyJoinPacket.h, Source/UI/Chat/ChatSuggestions.h, Source/UI/Dialogs/UIWaitDBSaveWnd.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Lists/UIListBox.h, Source/UI/Party/UIRequestJoinPartyMgr.h, Source/UI/Shortcuts/NormalItemSlotLoad.h, Source/UI/Shortcuts/ShortcutDetails.h, Source/UI/Shortcuts/ShortcutPress.h, Source/UI/UIBasicCtrl.h, Source/UI/UIStaticItem.h, Source/UI/Window/FrameFocus.h, Source/UI/Window/UIFrameWnd.h, Source/UI/Window/UIVideoWnd.h, Source/UI/Window/WindowManagerWindows.h, Source/UI/Window/WindowMouseHit.h, Source/UI/Window/WindowOrdering.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>
|
|
|
|
#include "UI/Window/WindowManagerWindows.h"
|
|
|
|
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
|