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() =
default;
33 virtual void onStart(::MinecraftScreenModel&) ;
35 virtual void tick(::MinecraftScreenModel&) ;
37 virtual void onCancel(::MinecraftScreenModel&) ;
39 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
41 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&)
const ;
43 virtual ::std::string getProgressMessage(::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
73 MCFOLD
void $onStart(::MinecraftScreenModel&);
75 MCAPI
void $tick(::MinecraftScreenModel&);
77 MCFOLD
void $onCancel(::MinecraftScreenModel&);
79 MCFOLD
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
81 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel&) const;
83 MCAPI ::std::
string $getProgressMessage(::MinecraftScreenModel&) const;
85 MCFOLD ::std::
string $getTitleText() const;
87 MCAPI ::std::
string $getName() const;
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5
Definition StoreProgressHandler.h:5
static MCAPI void ** $vftable()