3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/ProgressHandler.h"
7#include "mc/platform/brstd/move_only_function.h"
8#include "mc/world/actor/player/LoadingState.h"
19 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<void()>> mOnStart;
20 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<void()>> mOnTick;
21 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<void()>> mOnCancel;
22 ::ll::TypedStorage<1, 1, bool> mIsCancellable;
23 ::ll::TypedStorage<8, 32, ::std::string> mTitleText;
24 ::ll::TypedStorage<8, 32, ::std::string> mMessageText;
29 GenericProgressHandler();
34 virtual ~GenericProgressHandler() ;
36 virtual void onStart(::MinecraftScreenModel& minecraftScreenModel) ;
38 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
40 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) ;
42 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
44 virtual ::LoadingState getLoadingState(::MinecraftScreenModel& minecraftScreenModel)
const ;
46 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel)
const ;
48 virtual ::std::string getTitleText() const ;
50 virtual ::std::
string getName() const ;
56 MCAPI GenericProgressHandler(
58 ::std::
string message,
59 ::brstd::move_only_function<
void()> startCallback,
60 ::brstd::move_only_function<
void()> tickCallback,
61 ::brstd::move_only_function<
void()> cancelCallback,
71 ::std::
string message,
72 ::brstd::move_only_function<
void()> startCallback,
73 ::brstd::move_only_function<
void()> tickCallback,
74 ::brstd::move_only_function<
void()> cancelCallback,
88 MCAPI
void $onStart(::MinecraftScreenModel& minecraftScreenModel);
90 MCAPI
void $tick(::MinecraftScreenModel& minecraftScreenModel);
92 MCAPI
void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
94 MCFOLD
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
96 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel& minecraftScreenModel) const;
98 MCFOLD ::std::
string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
100 MCFOLD ::std::
string $getTitleText() const;
102 MCAPI ::std::
string $getName() const;
Definition GenericProgressHandler.h:5
static MCAPI void ** $vftable()
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5