3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/ProgressHandler.h"
7#include "mc/world/actor/player/LoadingState.h"
19 ::ll::TypedStorage<8, 32, ::std::string> mTitle;
20 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::std::function<void()>>> mIOTaskWorkCallbackSharedPtr;
21 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mIOTaskGroup;
22 ::ll::TypedStorage<1, 1, bool> mComplete;
27 IOTaskProgressHandler();
32 virtual ~IOTaskProgressHandler() =
default;
34 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) ;
36 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
38 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) ;
40 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
42 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel)
const ;
44 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel)
const ;
46 virtual ::std::string getTitleText() const ;
48 virtual ::std::
string getName() const ;
54 MCAPI IOTaskProgressHandler(::std::
string const& title, ::std::function<
void()> ioTaskWorkCallback);
60 MCAPI
void* $ctor(::std::
string const& title, ::std::function<
void()> ioTaskWorkCallback);
66 MCAPI
void $onStart(::MinecraftScreenModel& minecraftScreenModel);
68 MCFOLD
void $tick(::MinecraftScreenModel& minecraftScreenModel);
70 MCFOLD
void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
72 MCFOLD
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
74 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
76 MCFOLD ::std::
string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
78 MCFOLD ::std::
string $getTitleText() const;
80 MCAPI ::std::
string $getName() const;
Definition IOTaskProgressHandler.h:5
static MCAPI void ** $vftable()
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition TaskGroup.h:57