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 MCNAPI IOTaskProgressHandler(::
std::
string const& title, ::
std::function<
void()> ioTaskWorkCallback);
60 MCNAPI
void*
$ctor(::
std::
string const& title, ::
std::function<
void()> ioTaskWorkCallback);
Definition IOTaskProgressHandler.h:5
MCAPI void $onExit(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void * $ctor(::std::string const &title, ::std::function< void()> ioTaskWorkCallback)
MCAPI::LoadingState $getLoadingState(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI void $onStart(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void $onCancel(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::std::string $getName() const
MCAPI::std::string $getTitleText() const
MCAPI void $tick(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::std::string $getProgressMessage(::MinecraftScreenModel &minecraftScreenModel) const
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition TaskGroup.h:85