LeviLamina
Loading...
Searching...
No Matches
EditorManagerServer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/deps/scripting/runtime/Result_deprecated.h"
8#include "mc/editor/EditorManager.h"
9#include "mc/server/editor/serviceproviders/EditorManagerServerServiceProvider.h"
10#include "mc/world/events/EventListenerDispatcher.h"
11#include "mc/world/events/EventResult.h"
12#include "mc/world/events/LevelEventListener.h"
13#include "mc/world/events/ServerInstanceEventListener.h"
14#include "mc/world/level/FileArchiver.h"
15
16// auto generated forward declare list
17// clang-format off
19class ILevelListCache;
21class Level;
22class Player;
23class Scheduler;
24class ServerInstance;
26namespace Bedrock::PubSub { class Subscription; }
27namespace Core { class FilePathManager; }
28namespace Editor { class IEditorPlayer; }
29namespace Editor { struct EditorInitParams; }
30namespace Editor::Network { class INetworkPayload; }
31namespace Scripting { class GenericModuleBindingFactory; }
32namespace Scripting { struct ContextId; }
33// clang-format on
34
35namespace Editor {
36
37class EditorManagerServer : public ::Editor::EditorManager,
39 public ::EventListenerDispatcher<::LevelEventListener>,
41public:
42 // member variables
43 // NOLINTBEGIN
51 // NOLINTEND
52
53public:
54 // prevent constructor by default
55 EditorManagerServer& operator=(EditorManagerServer const&);
56 EditorManagerServer(EditorManagerServer const&);
57 EditorManagerServer();
58
59public:
60 // virtual functions
61 // NOLINTBEGIN
62 virtual ::EventResult onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent) /*override*/;
63
64 virtual ::EventResult onLevelTick(::Level&) /*override*/;
65
66 virtual ~EditorManagerServer() /*override*/;
67
68 virtual bool isClientSide() const /*override*/;
69
70 virtual ::std::unique_ptr<::Editor::IEditorPlayer> createPlayer(::Player& player) /*override*/;
71
72 virtual ::EventResult onServerLevelInitialized(::ServerInstance& instance, ::Level& level) /*override*/;
73
74 virtual ::EventResult onStartLeaveGame(::ServerInstance& instance) /*override*/;
75
76 virtual ::Scripting::Result_deprecated<void> scriptingTeardown() /*override*/;
77
78 virtual ::Scripting::Result_deprecated<void>
79 scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent) /*override*/;
80
81 virtual ::std::unique_ptr<::FileArchiver::IWorldConverter> createWorldConverter(
82 ::ILevelListCache& levelListCache,
83 ::Scheduler& scheduler,
84 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
85 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
86 ) /*override*/;
87
88 virtual ::Bedrock::PubSub::Subscription
89 registerLevelInitializeSubscriber(::std::function<void(bool, ::Editor::EditorManagerServer&)> func) /*override*/;
90
91 virtual ::Bedrock::PubSub::Subscription
92 registerLevelTickSubscriber(::std::function<void(::Editor::EditorManagerServer&)> func) /*override*/;
93 // NOLINTEND
94
95public:
96 // member functions
97 // NOLINTBEGIN
99 ::ServerInstance& server,
100 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager,
101 ::std::unique_ptr<::Editor::EditorInitParams> editorInitParams
102 );
103
105
106 MCNAPI ::std::vector<::std::unique_ptr<::Scripting::GenericModuleBindingFactory>> getServerModuleFactories();
107 // NOLINTEND
108
109public:
110 // constructor thunks
111 // NOLINTBEGIN
112 MCNAPI void* $ctor(
113 ::ServerInstance& server,
114 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager,
115 ::std::unique_ptr<::Editor::EditorInitParams> editorInitParams
116 );
117 // NOLINTEND
118
119public:
120 // destructor thunk
121 // NOLINTBEGIN
122 MCNAPI void $dtor();
123 // NOLINTEND
124
125public:
126 // virtual function thunks
127 // NOLINTBEGIN
128 MCNAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent);
129
130 MCNAPI ::EventResult $onLevelTick(::Level&);
131
132 MCNAPI bool $isClientSide() const;
133
134 MCNAPI ::std::unique_ptr<::Editor::IEditorPlayer> $createPlayer(::Player& player);
135
136 MCNAPI ::EventResult $onServerLevelInitialized(::ServerInstance& instance, ::Level& level);
137
138 MCNAPI ::EventResult $onStartLeaveGame(::ServerInstance& instance);
139
140 MCNAPI ::Scripting::Result_deprecated<void> $scriptingTeardown();
141
142 MCNAPI ::Scripting::Result_deprecated<void> $scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent);
143
144 MCNAPI ::std::unique_ptr<::FileArchiver::IWorldConverter> $createWorldConverter(
145 ::ILevelListCache& levelListCache,
146 ::Scheduler& scheduler,
147 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
148 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
149 );
150
151 MCNAPI ::Bedrock::PubSub::Subscription
153
154 MCNAPI ::Bedrock::PubSub::Subscription
156
157
158 // NOLINTEND
159
160public:
161 // vftables
162 // NOLINTBEGIN
163 MCNAPI static void** $vftableForIEditorManager();
164
165 MCNAPI static void** $vftableForEditorServiceList();
166
168
170
172
174 // NOLINTEND
175};
176
177} // namespace Editor
Definition Subscription.h:10
Definition FilePathManager.h:18
Definition EditorManagerServer.h:40
MCAPI void * $ctor(::ServerInstance &server, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > fileManager, ::std::unique_ptr<::Editor::EditorInitParams > editorInitParams)
MCAPI ::Scripting::Result_deprecated< void > $scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent)
static MCAPI void ** $vftableForEventListenerDispatcher()
MCAPI void _dispatchToServerPlayers(::Editor::Network::INetworkPayload &payload)
static MCAPI void ** $vftableForEditorManagerServerServiceProvider()
MCAPI ::Scripting::Result_deprecated< void > $scriptingTeardown()
static MCAPI void ** $vftableForEditorServiceList()
MCAPI ::std::unique_ptr<::Editor::IEditorPlayer > $createPlayer(::Player &player)
MCAPI::EventResult $onStartLeaveGame(::ServerInstance &instance)
MCAPI bool $isClientSide() const
static MCAPI void ** $vftableForServerInstanceEventListener()
MCAPI::EventResult $onServerLevelInitialized(::ServerInstance &instance, ::Level &level)
MCAPI ::std::vector<::std::unique_ptr<::Scripting::GenericModuleBindingFactory > > getServerModuleFactories()
static MCAPI void ** $vftableForEditorManagerServiceProvider()
MCAPI::Bedrock::PubSub::Subscription $registerLevelInitializeSubscriber(::std::function< void(bool, ::Editor::EditorManagerServer &)> func)
static MCAPI void ** $vftableForIEditorManager()
MCAPI::EventResult $onEvent(::ScriptingWorldInitializeEvent const &scriptingInitializedEvent)
MCAPI::Bedrock::PubSub::Subscription $registerLevelTickSubscriber(::std::function< void(::Editor::EditorManagerServer &)> func)
MCAPI EditorManagerServer(::ServerInstance &server, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > fileManager, ::std::unique_ptr<::Editor::EditorInitParams > editorInitParams)
MCAPI ::std::unique_ptr<::FileArchiver::IWorldConverter > $createWorldConverter(::ILevelListCache &levelListCache, ::Scheduler &scheduler, ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository > const &resourcePackRepository, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > keyProvider)
MCAPI::EventResult $onLevelTick(::Level &)
Definition EditorManager.h:30
Definition IEditorPlayer.h:16
Definition INetworkPayload.h:7
Definition EditorManagerServerServiceProvider.h:13
Definition EventListenerDispatcher.h:6
Definition IContentKeyProvider.h:13
Definition ILevelListCache.h:27
Definition IResourcePackRepository.h:34
Definition Level.h:250
Definition Player.h:129
Definition Scheduler.h:14
Definition GenericModuleBindingFactory.h:20
Definition ServerInstanceEventListener.h:17
Definition ServerInstance.h:57
Definition EditorInitParams.h:7
Definition ScriptingWorldInitializeEvent.h:16
Definition ContextId.h:7
Definition Alias.h:14