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