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;
32 ::ll::TypedStorage<1, 1, bool> mAttemptedServerFallback;
37 ResourcePackProgressHandler();
42 virtual ~ResourcePackProgressHandler() =
default;
44 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) ;
46 virtual void onGameEventNotification(
47 ::MinecraftScreenModel& minecraftScreenModel,
48 ::ui::GameEventNotification
const& notification
51 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
53 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) ;
55 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
57 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel)
const ;
59 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel)
const ;
61 virtual float getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel)
const ;
63 virtual ::std::string getTitleText() const ;
65 virtual ::std::
string getName() const ;
71 MCAPI explicit ResourcePackProgressHandler(
bool localServer);
77 MCAPI
void* $ctor(
bool localServer);
83 MCAPI
void $onStart(::MinecraftScreenModel& minecraftScreenModel);
85 MCAPI
void $onGameEventNotification(
86 ::MinecraftScreenModel& minecraftScreenModel,
87 ::ui::GameEventNotification const& notification
90 MCAPI
void $tick(::MinecraftScreenModel& minecraftScreenModel);
92 MCAPI
void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
94 MCAPI
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
96 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
98 MCAPI ::std::
string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
100 MCAPI
float $getLoadingProgress(::MinecraftScreenModel& minecraftScreenModel) const;
102 MCAPI ::std::
string $getTitleText() const;
104 MCAPI ::std::
string $getName() const;
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition ResourcePackProgressHandler.h:5
static MCAPI void ** $vftable()