3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/GameEventNotification.h"
7#include "mc/client/gui/ProgressHandler.h"
8#include "mc/client/services/download/IContentAcquisition.h"
9#include "mc/world/actor/player/LoadingState.h"
21 ::ll::TypedStorage<1, 1, bool> mDone;
22 ::ll::TypedStorage<8, 32, ::std::string> mPackProgress;
23 ::ll::TypedStorage<4, 4, float> mProgress;
24 ::ll::TypedStorage<8, 32, ::std::string> mProgressMessage;
25 ::ll::TypedStorage<4, 4, ::LoadingState> mLoadingState;
26 ::ll::TypedStorage<1, 1, bool> mDisconnected;
27 ::ll::TypedStorage<8, 16, ::std::optional<::std::chrono::steady_clock::time_point>> mStartTimestamp;
28 ::ll::TypedStorage<1, 1, bool> mLocalServer;
29 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mPackImportExistenceTracker;
30 ::ll::TypedStorage<8, 8, ::IContentAcquisition::ImportCallbackId> mImportCallbackId;
31 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::std::vector<::DlcId>>> mFailedPackImports;
36 ResourcePackProgressHandler();
41 virtual ~ResourcePackProgressHandler() ;
43 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) ;
45 virtual void onGameEventNotification(
46 ::MinecraftScreenModel& minecraftScreenModel,
47 ::ui::GameEventNotification
const& notification
50 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
52 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) ;
54 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
56 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel)
const ;
58 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel)
const ;
60 virtual float getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel)
const ;
62 virtual ::std::string getTitleText() const ;
64 virtual ::std::
string getName() const ;
70 MCAPI explicit ResourcePackProgressHandler(
bool localServer);
72 MCAPI
void _resetCDNState(::MinecraftScreenModel& minecraftScreenModel,
bool revertToServerBackend);
78 MCAPI
void* $ctor(
bool localServer);
90 MCAPI
void $onStart(::MinecraftScreenModel& minecraftScreenModel);
92 MCAPI
void $onGameEventNotification(
93 ::MinecraftScreenModel& minecraftScreenModel,
94 ::ui::GameEventNotification const& notification
97 MCAPI
void $tick(::MinecraftScreenModel& minecraftScreenModel);
99 MCAPI
void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
101 MCAPI
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
103 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
105 MCAPI ::std::
string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
107 MCFOLD
float $getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel) const;
109 MCAPI ::std::
string $getTitleText() const;
111 MCAPI ::std::
string $getName() const;
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition ResourcePackProgressHandler.h:5
static MCAPI void ** $vftable()