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