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::Network { class INetworkPayload; }
30namespace Scripting { class GenericModuleBindingFactory; }
31namespace Scripting { struct ContextId; }
32// clang-format on
33
34namespace Editor {
35
36class EditorManagerServer : public ::Editor::EditorManager,
38 public ::EventListenerDispatcher<::LevelEventListener>,
40public:
41 // member variables
42 // NOLINTBEGIN
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 EditorManagerServer& operator=(EditorManagerServer const&);
54 EditorManagerServer(EditorManagerServer const&);
55 EditorManagerServer();
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 virtual ::EventResult onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent) /*override*/;
61
62 virtual ::EventResult onLevelTick(::Level&) /*override*/;
63
64 virtual ~EditorManagerServer() /*override*/;
65
66 virtual bool isClientSide() const /*override*/;
67
68 virtual ::std::unique_ptr<::Editor::IEditorPlayer> createPlayer(::Player& player) /*override*/;
69
70 virtual ::EventResult onServerLevelInitialized(::ServerInstance& instance, ::Level& level) /*override*/;
71
72 virtual ::EventResult onStartLeaveGame(::ServerInstance& instance) /*override*/;
73
74 virtual ::Scripting::Result_deprecated<void> scriptingTeardown() /*override*/;
75
76 virtual ::Scripting::Result_deprecated<void>
77 scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent) /*override*/;
78
79 virtual ::std::unique_ptr<::FileArchiver::IWorldConverter> createWorldConverter(
80 ::ILevelListCache& levelListCache,
81 ::Scheduler& scheduler,
82 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
83 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
84 ) /*override*/;
85
86 virtual ::Bedrock::PubSub::Subscription
87 registerLevelInitializeSubscriber(::std::function<void(bool, ::Editor::EditorManagerServer&)> func) /*override*/;
88
89 virtual ::Bedrock::PubSub::Subscription
90 registerLevelTickSubscriber(::std::function<void(::Editor::EditorManagerServer&)> func) /*override*/;
91 // NOLINTEND
92
93public:
94 // member functions
95 // NOLINTBEGIN
96 MCNAPI
97 EditorManagerServer(::ServerInstance& server, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager);
98
100
101 MCNAPI ::std::vector<::std::unique_ptr<::Scripting::GenericModuleBindingFactory>> getServerModuleFactories();
102 // NOLINTEND
103
104public:
105 // constructor thunks
106 // NOLINTBEGIN
107 MCNAPI void* $ctor(::ServerInstance& server, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager);
108 // NOLINTEND
109
110public:
111 // destructor thunk
112 // NOLINTBEGIN
113 MCNAPI void $dtor();
114 // NOLINTEND
115
116public:
117 // virtual function thunks
118 // NOLINTBEGIN
119 MCNAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent);
120
121 MCNAPI ::EventResult $onLevelTick(::Level&);
122
123 MCNAPI bool $isClientSide() const;
124
125 MCNAPI ::std::unique_ptr<::Editor::IEditorPlayer> $createPlayer(::Player& player);
126
127 MCNAPI ::EventResult $onServerLevelInitialized(::ServerInstance& instance, ::Level& level);
128
129 MCNAPI ::EventResult $onStartLeaveGame(::ServerInstance& instance);
130
131 MCNAPI ::Scripting::Result_deprecated<void> $scriptingTeardown();
132
133 MCNAPI ::Scripting::Result_deprecated<void> $scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent);
134
135 MCNAPI ::std::unique_ptr<::FileArchiver::IWorldConverter> $createWorldConverter(
136 ::ILevelListCache& levelListCache,
137 ::Scheduler& scheduler,
138 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
139 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
140 );
141
142 MCNAPI ::Bedrock::PubSub::Subscription
144
145 MCNAPI ::Bedrock::PubSub::Subscription
147
148
149 // NOLINTEND
150
151public:
152 // vftables
153 // NOLINTBEGIN
154 MCNAPI static void** $vftableForIEditorManager();
155
156 MCNAPI static void** $vftableForEditorServiceList();
157
159
161
163
165 // NOLINTEND
166};
167
168} // namespace Editor
Definition Subscription.h:10
Definition FilePathManager.h:18
Definition EditorManagerServer.h:39
MCAPI EditorManagerServer(::ServerInstance &server, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > fileManager)
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 void * $ctor(::ServerInstance &server, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > fileManager)
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 ::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:29
Definition IEditorPlayer.h:16
Definition INetworkPayload.h:12
Definition EditorManagerServerServiceProvider.h:13
Definition EventListenerDispatcher.h:6
Definition IContentKeyProvider.h:13
Definition ILevelListCache.h:27
Definition IResourcePackRepository.h:34
Definition Level.h:249
Definition Player.h:125
Definition Scheduler.h:14
Definition GenericModuleBindingFactory.h:20
Definition ServerInstanceEventListener.h:17
Definition ServerInstance.h:57
Definition ScriptingWorldInitializeEvent.h:16
Definition ContextId.h:7
Definition Alias.h:14