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()>>> mAsyncTaskWorkCallbackSharedPtr;
21 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mAsyncTaskGroup;
26 AsyncTaskProgressHandler();
31 virtual ~AsyncTaskProgressHandler() =
default;
33 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) ;
35 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
37 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) ;
39 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
41 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel)
const ;
43 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel)
const ;
45 virtual ::std::string getTitleText() const ;
47 virtual ::std::
string getName() const ;
53 MCAPI AsyncTaskProgressHandler(::std::
string const& title, ::std::function<
void()> asyncTaskWorkCallback);
59 MCAPI
void* $ctor(::std::
string const& title, ::std::function<
void()> asyncTaskWorkCallback);
65 MCAPI
void $onStart(::MinecraftScreenModel& minecraftScreenModel);
67 MCFOLD
void $tick(::MinecraftScreenModel& minecraftScreenModel);
69 MCFOLD
void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
71 MCFOLD
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
73 MCFOLD ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
75 MCFOLD ::std::
string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
77 MCFOLD ::std::
string $getTitleText() const;
79 MCAPI ::std::
string $getName() const;
Definition AsyncTaskProgressHandler.h:5
static MCAPI void ** $vftable()
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition TaskGroup.h:57