rodecomp/Source/Contents/Store/MCStoreInfoBackup.h
ragnarok-clanker 88b2de90c3 Maintenance: [forced, user-approved] Family G26: remove MerchantShopRefresh and StoreBackupContext (inventory rows 57, 99). Refresh 0
Batch #10251 by ragnarok-clanker: forced by an admin (2 lower score(s), 10 changed function(s)); checked with 244 compiled unit(s), including every includer of Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Store/MCStoreInfoBackup.h, Source/Contents/Store/MCStoreInfoBackupAsyncWork.h, Source/UI/Shop/UIMerchantShopMakeWnd.h, Source/UI/Shop/MerchantShopRefresh.h.
Deletes: Source/UI/Shop/MerchantShopRefresh.h
2026-11-03 12:38:48 +00:00

47 lines
1.4 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_STORE_MCSTOREINFOBACKUP_H
#define RAGNAROK_SOURCE_CONTENTS_STORE_MCSTOREINFOBACKUP_H
#include "Contents/Items/ItemInfo.h"
#include <vector>
class LuaScript;
class CAsyncWorkMgr;
struct AsyncDiagnostic;
namespace Json {
class Value;
}
class CMCStoreInfoBackup {
public:
CMCStoreInfoBackup();
virtual ~CMCStoreInfoBackup();
void Clear();
int Restore(unsigned char wholeItem, int maximum);
std::string LoadUrl() const;
std::string SaveUrl() const;
void Reset(LuaScript& settings, LuaScript& tables, const char* host, const char* port, const char* overrideKey);
void CompleteLoad(
AsyncDiagnostic diagnostic, std::uint32_t accountId, std::uint32_t characterId, std::string accountName, std::string response
);
void CompleteSave(AsyncDiagnostic diagnostic, std::string response);
void Load(
std::uint32_t accountId, std::uint32_t characterId, std::string accountName, int type);
void Save(int type);
void ImportData(Json::Value& data);
void ExportData(Json::Value& data) const;
/* 0004 */ bool enabled;
/* 0005 */ bool loaded;
/* 0008 */ std::uint32_t pendingSaves;
/* 000C */ std::string saveUrl;
/* 0024 */ std::string loadUrl;
/* 003C */ std::string title;
/* 0054 */ int type;
/* 0058 */ std::vector<ITEM_INFO> items;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CMCStoreInfoBackup) == 100);
#endif
#endif