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/script_core/runtime/scripting/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 ~ServerRestartService() /*override*/ = default;
53
54 virtual ::Scripting::Result_deprecated<void> init() /*override*/;
55
56 virtual ::Scripting::Result_deprecated<void> quit() /*override*/;
57
58 virtual ::std::string_view getServiceName() const /*override*/;
59
60 virtual ::EventResult onEvent(::ScriptingWorldInitializeEvent 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 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCNAPI ::Scripting::Result_deprecated<void> $init();
86
87 MCNAPI ::Scripting::Result_deprecated<void> $quit();
88
89 MCNAPI ::std::string_view $getServiceName() const;
90
91 MCNAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const&);
92
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftableForIEditorService();
102
104
106 // NOLINTEND
107};
108
109} // 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::EventResult $onEvent(::ScriptingWorldInitializeEvent const &)
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)
Definition EventListenerDispatcher.h:6
Definition ScriptingWorldInitializeEvent.h:12
Definition Alias.h:14