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 MCNAPI explicit ResourcePackProgressHandler(
bool localServer);
77 MCNAPI
void*
$ctor(
bool localServer);
87 ::ui::GameEventNotification const& notification
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition ResourcePackProgressHandler.h:5
MCAPI void $onExit(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::std::string $getTitleText() const
MCAPI void $onGameEventNotification(::MinecraftScreenModel &minecraftScreenModel, ::ui::GameEventNotification const ¬ification)
MCAPI void $onStart(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void $tick(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::LoadingState $getLoadingState(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI::std::string $getName() const
MCAPI void $onCancel(::MinecraftScreenModel &minecraftScreenModel)
static MCAPI void ** $vftable()
MCAPI float $getLoadingProgress(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI::std::string $getProgressMessage(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI void * $ctor(bool localServer)