LeviLamina
Loading...
Searching...
No Matches
EditorPlaytestManagerService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/SessionResult.h"
7#include "mc/deps/scripting/runtime/Result.h"
8#include "mc/editor/services/IEditorService.h"
9#include "mc/server/editor/serviceproviders/EditorPlayerPlaytestServiceProvider.h"
10#include "mc/server/editor/serviceproviders/EditorPlaytestManagerServiceProvider.h"
11
12// auto generated forward declare list
13// clang-format off
14class WeakEntityRef;
15namespace Editor { class GameOptions; }
16namespace Editor::Network { class PlaytestBeginSessionTransferResponsePayload; }
17namespace mce { class UUID; }
18// clang-format on
19
20namespace Editor::Services {
21
25public:
26 // EditorPlaytestManagerService inner types declare
27 // clang-format off
28 struct PlayerSessionInfo;
29 // clang-format on
30
31 // EditorPlaytestManagerService inner types define
32 enum class SessionState : int {
33 Idle = 0,
34 Archiving = 1,
35 ArchiveComplete = 2,
36 AwaitingTransferResponse = 3,
37 ExecutingTransfer = 4,
38 ReturningToEditor = 5,
39 };
40
42 public:
43 // member variables
44 // NOLINTBEGIN
51 // NOLINTEND
52
53 public:
54 // prevent constructor by default
55 PlayerSessionInfo& operator=(PlayerSessionInfo const&);
58
59 public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI ~PlayerSessionInfo();
63 // NOLINTEND
64
65 public:
66 // destructor thunk
67 // NOLINTBEGIN
68 MCAPI void $dtor();
69 // NOLINTEND
70 };
71
72public:
73 // member variables
74 // NOLINTBEGIN
76 // NOLINTEND
77
78public:
79 // prevent constructor by default
83
84public:
85 // virtual functions
86 // NOLINTBEGIN
87 // vIndex: 0
88 virtual ~EditorPlaytestManagerService() /*override*/ = default;
89
90 // vIndex: 1
91 virtual ::Scripting::Result<void> init() /*override*/;
92
93 // vIndex: 3
94 virtual ::Scripting::Result<void> quit() /*override*/;
95
96 // vIndex: 4
97 virtual ::std::string_view getServiceName() const /*override*/;
98
99 // vIndex: 1
100 virtual ::Editor::Playtest::SessionResult getPlaytestSessionAvailability(::WeakEntityRef playerRef) /*override*/;
101
102 // vIndex: 2
103 virtual void beginPlaytestSession(
104 ::WeakEntityRef playerRef,
105 ::Editor::GameOptions const& options,
106 ::std::function<void(::Editor::Playtest::SessionResult const&)> callback
107 ) /*override*/;
108
109 // vIndex: 3
110 virtual void _handlePlayersSessionTransferResponse(
111 ::WeakEntityRef playerRef,
112 ::Editor::Network::PlaytestBeginSessionTransferResponsePayload const& payload
113 ) /*override*/;
114 // NOLINTEND
115
116public:
117 // member functions
118 // NOLINTBEGIN
119 MCAPI ::Editor::Services::EditorPlaytestManagerService::PlayerSessionInfo*
120 _createSessionInfo(::mce::UUID const& clientUUID);
121 // NOLINTEND
122
123public:
124 // destructor thunk
125 // NOLINTBEGIN
126
127 // NOLINTEND
128
129public:
130 // virtual function thunks
131 // NOLINTBEGIN
132 MCFOLD ::Scripting::Result<void> $init();
133
134 MCFOLD ::Scripting::Result<void> $quit();
135
136 MCAPI ::std::string_view $getServiceName() const;
137
138 MCAPI ::Editor::Playtest::SessionResult $getPlaytestSessionAvailability(::WeakEntityRef playerRef);
139
140 MCAPI void $beginPlaytestSession(
141 ::WeakEntityRef playerRef,
142 ::Editor::GameOptions const& options,
143 ::std::function<void(::Editor::Playtest::SessionResult const&)> callback
144 );
145
146 MCAPI void $_handlePlayersSessionTransferResponse(
147 ::WeakEntityRef playerRef,
148 ::Editor::Network::PlaytestBeginSessionTransferResponsePayload const& payload
149 );
150 // NOLINTEND
151
152public:
153 // vftables
154 // NOLINTBEGIN
155 MCAPI static void** $vftableForIEditorService();
156
157 MCAPI static void** $vftableForEditorPlaytestManagerServiceProvider();
158
159 MCAPI static void** $vftableForEditorPlayerPlaytestServiceProvider();
160 // NOLINTEND
161};
162
163} // namespace Editor::Services
Definition GameOptions.h:12
Definition EditorPlayerPlaytestServiceProvider.h:17
Definition EditorPlaytestManagerServiceProvider.h:7
Definition EditorPlaytestManagerService.h:24
Definition IEditorService.h:11
Definition Result.h:6
Definition WeakEntityRef.h:14
STL namespace.
Definition EditorPlaytestManagerService.h:41
Definition Alias.h:14