3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/GameConnectionType.h"
7#include "mc/client/gui/ProgressHandler.h"
8#include "mc/world/actor/player/LoadingState.h"
19 ::ll::TypedStorage<1, 1, bool> mConnected;
20 ::ll::TypedStorage<1, 1, bool> mHandoverProgress;
21 ::ll::TypedStorage<1, 1, bool> mInitialized;
22 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mInitTime;
23 ::ll::TypedStorage<8, 8, ::std::chrono::seconds> mTimeoutTime;
24 ::ll::TypedStorage<4, 4, ::GameConnectionType> mConnectionType;
25 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnStart;
26 ::ll::TypedStorage<8, 64, ::std::function<void()>> mAbortCallback;
27 ::ll::TypedStorage<8, 64, ::std::function<void(::std::unordered_map<::std::string, ::std::string>&)>>
33 GameServerConnectProgressHandler();
38 virtual ~GameServerConnectProgressHandler() =
default;
40 virtual void onStart(::MinecraftScreenModel&) ;
42 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) ;
44 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) ;
46 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) ;
48 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&)
const ;
50 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel)
const ;
52 virtual ::std::string getTitleText() const ;
54 virtual
void addEventProperties(::std::unordered_map<::std::
string, ::std::
string>& eventProperties) const
57 virtual ::std::
string getName() const ;
63 MCNAPI GameServerConnectProgressHandler(
64 ::GameConnectionType connection,
65 ::
std::function<
void()> startCallback,
66 bool handOverProgress,
67 ::
std::function<
void(::
std::unordered_map<::
std::
string, ::
std::
string>&)> eventPropertyCallback,
68 ::
std::function<
void()> abortCallback
76 ::GameConnectionType connection,
77 ::
std::function<
void()> startCallback,
78 bool handOverProgress,
79 ::
std::function<
void(::
std::unordered_map<::
std::
string, ::
std::
string>&)> eventPropertyCallback,
80 ::
std::function<
void()> abortCallback
Definition GameServerConnectProgressHandler.h:5
MCAPI::std::string $getName() const
MCAPI void * $ctor(::GameConnectionType connection, ::std::function< void()> startCallback, bool handOverProgress, ::std::function< void(::std::unordered_map<::std::string, ::std::string > &)> eventPropertyCallback, ::std::function< void()> abortCallback)
MCAPI void $addEventProperties(::std::unordered_map<::std::string, ::std::string > &eventProperties) const
MCAPI void $tick(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void $onStart(::MinecraftScreenModel &)
MCAPI::std::string $getTitleText() const
MCAPI::std::string $getProgressMessage(::MinecraftScreenModel &minecraftScreenModel) const
MCAPI void $onCancel(::MinecraftScreenModel &minecraftScreenModel)
MCAPI void $onExit(::MinecraftScreenModel &minecraftScreenModel)
MCAPI::LoadingState $getLoadingState(::MinecraftScreenModel &) const
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5