rodecomp/Source/Contents/Async/AsyncWorkMgr.h
ragnarok-clanker 855532c617 Decompile 2 functions in Source/Contents/Async/AsyncWorkMgr.cpp, Source/Contents/Async/AsyncWorkMgr.h, ...
Batch #17841 by eAthena: 0 byte-identical, 2 confirmed by peer review.

- fn_03661 CAdventurerAgencyMgr::RequestList: logic confirmed by peer review
- fn_03667 CAdventurerAgencyMgr::RequestSearch: logic confirmed by peer review

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-12 04:25:27 +00:00

60 lines
2.9 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_ASYNC_ASYNCWORKMGR_H
#define RAGNAROK_SOURCE_CONTENTS_ASYNC_ASYNCWORKMGR_H
#include "Contents/Party/AdvenPartyInfo.h"
#include "Utility/Async/NAsyncWorkMgr.h"
class CAsyncWorkRecycleObjectPoolMgr;
class CConnection;
class CEmblemDataMgr;
#include "UI/Window/WindowManagerWindows.h"
class CAsyncWorkMgr : public NAsyncWorkMgr {
public:
explicit CAsyncWorkMgr(std::uint32_t workers);
~CAsyncWorkMgr() override;
static bool Initialize(std::uint32_t workers);
static void Shutdown();
void LoadAccount(std::uint32_t accountId, std::string world, std::string url);
void SaveAccount(std::uint32_t accountId, std::string world, std::string url, std::string token, std::string data);
void ChangePartyMaster(
std::uint32_t accountId, std::uint32_t characterId, std::string characterName, std::uint32_t targetAccountId, std::uint32_t targetCharacterId,
std::string targetName, std::string world, std::string url, std::string token
);
void LoadCharacter(std::uint32_t accountId, std::uint32_t characterId, std::string world, std::string url, std::string token);
void SaveCharacter(std::uint32_t accountId, std::uint32_t characterId, std::string world, std::string url, std::string token, std::string data);
void DownloadEmblem(std::string url, std::uint32_t accountId, std::string token, std::string world, std::uint32_t guildId, std::uint32_t version);
void UploadEmblem(std::string url, std::uint32_t accountId, std::string token, std::string world, std::uint32_t guildId, std::string path);
void LoadMyParty(std::uint32_t accountId, std::uint32_t characterId, std::string world, std::string url, std::string token);
void LoadPartyInfo(
std::uint32_t accountId, std::uint32_t characterId, std::string world, std::string url, std::string token, std::uint32_t queryAccountId
);
void LoadPartyList(
std::uint32_t accountId, std::uint32_t characterId, std::string world, std::string url, std::string token, int search, CAdvenPartyInfo filter, int page
);
void LoadStore(
std::uint32_t accountId, std::uint32_t characterId, std::string world, std::string url, std::string token, int type
);
void SaveStore(std::uint32_t accountId, std::uint32_t characterId, std::string world, std::string url, std::string token, std::string data, int type);
void RegisterParty(std::uint32_t accountId, std::uint32_t characterId, std::string world, std::string url, std::string token, CAdvenPartyInfo info);
void StopRecruiting(std::uint32_t accountId, std::string world, std::string url, std::string token, std::uint32_t masterAccountId);
// INLINED
CAsyncWorkRecycleObjectPoolMgr& Pools() {
return *this->m_pools;
}
private:
/* 0020 */ bool m_ready;
/* 0024 */ CAsyncWorkRecycleObjectPoolMgr* m_pools;
};
extern CAsyncWorkMgr* g_asyncWorkMgr;
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CAsyncWorkMgr) == 40);
#endif
#endif