3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/ProgressHandler.h"
7#include "mc/world/actor/player/LoadingState.h"
18 ::ll::TypedStorage<8, 64, ::std::function<void(
bool&)>> mOnTick;
19 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnCancel;
20 ::ll::TypedStorage<8, 32, ::std::string> mTitleText;
21 ::ll::TypedStorage<1, 1, bool> mDone;
26 StoreProgressHandler();
31 virtual ~StoreProgressHandler() ;
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 StoreProgressHandler(
54 ::std::
string const& title,
55 ::std::function<
void(
bool&)> tickCallback,
56 ::std::function<
void()> cancelCallback
64 ::std::
string const& title,
65 ::std::function<
void(
bool&)> tickCallback,
66 ::std::function<
void()> cancelCallback
79 MCFOLD
void $onStart(::MinecraftScreenModel& minecraftScreenModel);
81 MCAPI
void $tick(::MinecraftScreenModel& minecraftScreenModel);
83 MCFOLD
void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
85 MCFOLD
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
87 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
89 MCAPI ::std::
string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
91 MCFOLD ::std::
string $getTitleText() const;
93 MCAPI ::std::
string $getName() const;
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition StoreProgressHandler.h:5
static MCAPI void ** $vftable()