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<bool()>> mIsSyncRunning;
19 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mHasSyncFailed;
20 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnCancelRequested;
21 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point const> mStartTimestamp;
22 ::ll::TypedStorage<8, 32, ::std::string> mScreenName;
27 CloudSyncObserverProgressHandler();
32 virtual ~CloudSyncObserverProgressHandler() =
default;
34 virtual void onStart(::MinecraftScreenModel&) ;
36 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
38 virtual void onCancel(::MinecraftScreenModel&) ;
40 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
42 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&)
const ;
44 virtual ::std::string getProgressMessage(::MinecraftScreenModel&)
const ;
46 virtual ::std::string getTitleText() const ;
48 virtual ::std::
string getName() const ;
54 MCNAPI CloudSyncObserverProgressHandler(
55 ::
std::function<
bool()> isSyncRunning,
56 ::
std::function<
bool()> hasSyncFailed,
57 ::
std::function<
void()> onCancelRequested,
58 ::
std::
string const& screenName
66 ::
std::function<
bool()> isSyncRunning,
67 ::
std::function<
bool()> hasSyncFailed,
68 ::
std::function<
void()> onCancelRequested,
69 ::
std::
string const& screenName
Definition CloudSyncObserverProgressHandler.h:5
MCAPI void $onExit(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void * $ctor(::std::function< bool()> isSyncRunning, ::std::function< bool()> hasSyncFailed, ::std::function< void()> onCancelRequested, ::std::string const &screenName)
MCAPI void $onStart(::MinecraftScreenModel &)
MCAPI::std::string $getName() const
MCAPI::std::string $getTitleText() const
MCAPI void $tick(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::std::string $getProgressMessage(::MinecraftScreenModel &) const
MCAPI::LoadingState $getLoadingState(::MinecraftScreenModel &) const
MCAPI void $onCancel(::MinecraftScreenModel &)
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5