LeviLamina
Loading...
Searching...
No Matches
GameServerConnectProgressHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/GameConnectionType.h"
7#include "mc/client/gui/ProgressHandler.h"
8#include "mc/world/actor/player/LoadingState.h"
9
10// auto generated forward declare list
11// clang-format off
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
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>&)>>
28 mEventCallback;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 GameServerConnectProgressHandler();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~GameServerConnectProgressHandler() /*override*/ = default;
39
40 virtual void onStart(::MinecraftScreenModel&) /*override*/;
41
42 virtual void tick(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
43
44 virtual void onCancel(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
45
46 virtual void onExit(::MinecraftScreenModel& minecraftScreenModel) /*override*/;
47
48 virtual ::LoadingState getLoadingState(::MinecraftScreenModel&) const /*override*/;
49
50 virtual ::std::string getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const /*override*/;
51
52 virtual ::std::string getTitleText() const /*override*/;
53
54 virtual void addEventProperties(::std::unordered_map<::std::string, ::std::string>& eventProperties) const
55 /*override*/;
56
57 virtual ::std::string getName() const /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
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
69 );
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(
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
81 );
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCAPI void $onStart(::MinecraftScreenModel&);
88
89 MCAPI void $tick(::MinecraftScreenModel& minecraftScreenModel);
90
91 MCAPI void $onCancel(::MinecraftScreenModel& minecraftScreenModel);
92
93 MCAPI void $onExit(::MinecraftScreenModel& minecraftScreenModel);
94
95 MCAPI ::LoadingState $getLoadingState(::MinecraftScreenModel&) const;
96
97 MCFOLD ::std::string $getProgressMessage(::MinecraftScreenModel& minecraftScreenModel) const;
98
99 MCAPI ::std::string $getTitleText() const;
100
101 MCAPI void $addEventProperties(::std::unordered_map<::std::string, ::std::string>& eventProperties) const;
102
103 MCAPI ::std::string $getName() const;
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCNAPI static void** $vftable();
110 // NOLINTEND
111};
Definition GameServerConnectProgressHandler.h:5
static MCAPI void ** $vftable()
Definition MinecraftScreenModel.h:5
Definition ProgressHandler.h:5