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_deprecated.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
63 // NOLINTEND
64
65 public:
66 // destructor thunk
67 // NOLINTBEGIN
68 MCNAPI 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_deprecated<void> init() /*override*/;
92
93 // vIndex: 3
94 virtual ::Scripting::Result_deprecated<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 MCNAPI ::Editor::Services::EditorPlaytestManagerService::PlayerSessionInfo*
120 _createSessionInfo(::mce::UUID const& clientUUID);
121 // NOLINTEND
122
123public:
124 // virtual function thunks
125 // NOLINTBEGIN
126 MCNAPI ::Scripting::Result_deprecated<void> $init();
127
128 MCNAPI ::Scripting::Result_deprecated<void> $quit();
129
130 MCNAPI ::std::string_view $getServiceName() const;
131
132 MCNAPI ::Editor::Playtest::SessionResult $getPlaytestSessionAvailability(::WeakEntityRef playerRef);
133
135 ::WeakEntityRef playerRef,
136 ::Editor::GameOptions const& options,
137 ::std::function<void(::Editor::Playtest::SessionResult const&)> callback
138 );
139
141 ::WeakEntityRef playerRef,
142 ::Editor::Network::PlaytestBeginSessionTransferResponsePayload const& payload
143 );
144 // NOLINTEND
145
146public:
147 // vftables
148 // NOLINTBEGIN
149 MCNAPI static void** $vftableForIEditorService();
150
152
154 // NOLINTEND
155};
156
157} // namespace Editor::Services
Definition GameOptions.h:15
Definition EditorPlayerPlaytestServiceProvider.h:17
Definition EditorPlaytestManagerServiceProvider.h:7
Definition EditorPlaytestManagerService.h:24
static MCAPI void ** $vftableForEditorPlaytestManagerServiceProvider()
MCAPI::Editor::Playtest::SessionResult $getPlaytestSessionAvailability(::WeakEntityRef playerRef)
MCAPI ::Scripting::Result_deprecated< void > $init()
static MCAPI void ** $vftableForEditorPlayerPlaytestServiceProvider()
MCAPI ::Scripting::Result_deprecated< void > $quit()
MCAPI::std::string_view $getServiceName() const
MCAPI void $beginPlaytestSession(::WeakEntityRef playerRef, ::Editor::GameOptions const &options, ::std::function< void(::Editor::Playtest::SessionResult const &)> callback)
MCAPI void $_handlePlayersSessionTransferResponse(::WeakEntityRef playerRef, ::Editor::Network::PlaytestBeginSessionTransferResponsePayload const &payload)
MCAPI::Editor::Services::EditorPlaytestManagerService::PlayerSessionInfo * _createSessionInfo(::mce::UUID const &clientUUID)
Definition IEditorService.h:11
Definition WeakEntityRef.h:14
STL namespace.
Definition EditorPlaytestManagerService.h:41
Definition Alias.h:14