rodecomp/Source/Contents/Party/AdventurerAgencyMgr.h
ragnarok-clanker 8b3ba20b56 Maintenance: [forced, user-approved] Family G9: remove the adventurer-agency bundle family: AgencyRequestContext, StopRecruitingConte
Batch #10208 by ragnarok-clanker: forced by an admin (10 lower score(s), 42 changed function(s)); checked with 119 compiled unit(s), including every includer of Source/Client/ModeBaseEvents.h, Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Configuration/ServiceConfiguration.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/Party/LoadPartyInfoAsyncWork.h, Source/Contents/Party/PartyJoinResult.h, Source/Contents/Party/RegisterPartyAsyncWork.h, Source/Contents/Party/StopRecruitingAsyncWork.h, Source/UI/Party/UIAdvenPartyBoardWnd.h, Source/UI/Party/UIApplyForPartyWnd.h, Source/UI/Party/UIPartyInfoWnd.h, Source/UI/Party/UIRegisterPartyWnd.h, Source/Contents/Party/AgencyRequestContext.h.
Deletes: Source/Contents/Party/AgencyRequestContext.h
2026-11-02 22:46:30 +00:00

51 lines
1.9 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_PARTY_ADVENTURERAGENCYMGR_H
#define RAGNAROK_SOURCE_CONTENTS_PARTY_ADVENTURERAGENCYMGR_H
#include "Contents/Party/AdvenPartyInfo.h"
#include <vector>
struct AsyncDiagnostic;
#include "UI/Window/WindowManagerWindows.h"
class CAdventurerAgencyMgr {
public:
CAdventurerAgencyMgr();
virtual ~CAdventurerAgencyMgr();
static bool Initialize();
static void Shutdown();
void LoadList(const Json::Value& value);
const std::vector<CAdvenPartyInfo>& Entries() const;
void RequestChangeMaster(std::uint32_t targetAccountId, std::uint32_t targetCharacterId, std::string targetName);
void RequestMyParty();
void RequestList(int page);
void RequestInfo(std::uint32_t queryAccountId);
void RequestSearch(const CAdvenPartyInfo& filter, int page);
void RequestRegistration(const CAdvenPartyInfo& info);
void RequestStop(std::uint32_t masterAccountId);
void RequestStop();
void CompleteChangeMaster(AsyncDiagnostic diagnostic, std::string response, WindowManagerWindows& windows);
void CompleteList(AsyncDiagnostic diagnostic, std::string response, WindowManagerWindows& windows);
void CompleteMyParty(AsyncDiagnostic diagnostic, std::string response, WindowManagerWindows& windows);
void CompletePartyInfo(AsyncDiagnostic diagnostic, std::string response);
void CompleteRegistration(AsyncDiagnostic diagnostic, std::string response);
void CompleteStopRecruiting(AsyncDiagnostic diagnostic, std::string response);
std::string ServiceUrl(int operation) const;
/* 0004 */ bool enabled;
/* 0005 */ bool registered;
/* 0008 */ std::uint32_t unknown_0008;
/* 000C */ std::vector<CAdvenPartyInfo> entries;
/* 0018 */ std::uint32_t pending;
private:
static std::uint32_t Id(double value);
};
extern CAdventurerAgencyMgr* g_adventurerAgencyMgr;
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CAdventurerAgencyMgr) == 28);
#endif
#endif