LeviLamina
Loading...
Searching...
No Matches
ServerRestartService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/editor/ServerRestartServiceProvider.h"
7#include "mc/deps/scripting/runtime/Result.h"
8#include "mc/editor/services/IEditorService.h"
9#include "mc/editor/services/PayloadStoreHelper.h"
10#include "mc/world/events/EventListenerDispatcher.h"
11#include "mc/world/events/EventResult.h"
12
13// auto generated forward declare list
14// clang-format off
17namespace Editor::Network { class RestartServiceRequestRestartPayload; }
18// clang-format on
19
20namespace Editor::Services {
21
25 public ::EventListenerDispatcher<::LevelEventListener> {
26public:
27 // ServerRestartService inner types define
28 enum class State : int {
29 Listening = 0,
30 AwaitingRestart = 1,
31 RestartComplete = 2,
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 // vIndex: 11
52 virtual ::EventResult onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent) /*override*/;
53
54 // vIndex: 0
55 virtual ~ServerRestartService() /*override*/;
56
57 // vIndex: 1
58 virtual ::Scripting::Result<void> init() /*override*/;
59
60 // vIndex: 3
61 virtual ::Scripting::Result<void> quit() /*override*/;
62
63 // vIndex: 4
64 virtual ::std::string_view getServiceName() const /*override*/;
65
66 // vIndex: 1
67 virtual void requestReloadScriptsAndFunctions() /*override*/;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCAPI void
74 _onRestartServiceRequestRestartPayload(::Editor::Network::RestartServiceRequestRestartPayload const& payload);
75
76 MCAPI void _onTick();
77
78 MCAPI bool _validateRequest();
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCAPI void $dtor();
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent);
91
92 MCAPI ::Scripting::Result<void> $init();
93
94 MCAPI ::Scripting::Result<void> $quit();
95
96 MCAPI ::std::string_view $getServiceName() const;
97
98 MCAPI void $requestReloadScriptsAndFunctions();
99 // NOLINTEND
100
101public:
102 // vftables
103 // NOLINTBEGIN
104 MCAPI static void** $vftableForIEditorService();
105
106 MCAPI static void** $vftableForServerRestartServiceProvider();
107
108 MCAPI static void** $vftableForEventListenerDispatcher();
109 // NOLINTEND
110};
111
112} // namespace Editor::Services
Definition RestartServiceRequestRestartPayload.h:11
Definition IEditorService.h:11
Definition PayloadStoreHelper.h:7
Definition ServerRestartServiceProvider.h:7
Definition ServerRestartService.h:25
Definition EventListenerDispatcher.h:6
Definition LevelEventListener.h:16
Definition ScriptingWorldInitializeEvent.h:16
Definition Alias.h:14