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 MCAPI 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
87 MCAPI
void $onStart(::MinecraftScreenModel&);
89 MCAPI
void $tick(::MinecraftScreenModel& minecraftScreenModel);
91 MCAPI
void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
93 MCAPI
void $onExit(::MinecraftScreenModel& minecraftScreenModel);
95 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel&) const;
97 MCFOLD ::std::
string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
99 MCAPI ::std::
string $getTitleText() const;
101 MCAPI
void $addEventProperties(::std::unordered_map<::std::
string, ::std::
string>& eventProperties) const;
103 MCAPI ::std::
string $getName() const;
Definition GameServerConnectProgressHandler.h:5
static MCAPI void ** $vftable()
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5