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/editor/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
38 public ::EventListenerDispatcher<::LevelEventListener>,
40public:
41 // member variables
42 // NOLINTBEGIN
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 // vIndex: 11
60 virtual ::EventResult onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent) /*override*/;
61
62 // vIndex: 0
63 virtual ~EditorManagerServer() /*override*/;
64
65 // vIndex: 2
66 virtual bool isClientSide() const /*override*/;
67
68 // vIndex: 3
69 virtual ::std::unique_ptr<::Editor::IEditorPlayer> createPlayer(::Player& player) /*override*/;
70
71 // vIndex: 4
72 virtual ::EventResult onServerLevelInitialized(::ServerInstance& instance, ::Level& level) /*override*/;
73
74 // vIndex: 11
75 virtual ::EventResult onStartLeaveGame(::ServerInstance& instance) /*override*/;
76
77 // vIndex: 7
78 virtual ::Scripting::Result_deprecated<void> scriptingTeardown() /*override*/;
79
80 // vIndex: 8
81 virtual ::Scripting::Result_deprecated<void>
82 scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent) /*override*/;
83
84 // vIndex: 4
85 virtual ::std::unique_ptr<::FileArchiver::IWorldConverter> createWorldConverter(
86 ::ILevelListCache& levelListCache,
87 ::Scheduler& scheduler,
88 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
89 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
90 ) /*override*/;
91
92 // vIndex: 1
93 virtual ::Bedrock::PubSub::Subscription
94 registerLevelInitializeSubscriber(::std::function<void(bool, ::Editor::EditorManagerServer&)> func) /*override*/;
95 // NOLINTEND
96
97public:
98 // member functions
99 // NOLINTBEGIN
100 MCNAPI
101 EditorManagerServer(::ServerInstance& server, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager);
102
104
105 MCNAPI ::std::vector<::std::unique_ptr<::Scripting::GenericModuleBindingFactory>> getServerModuleFactories();
106 // NOLINTEND
107
108public:
109 // constructor thunks
110 // NOLINTBEGIN
111 MCNAPI void* $ctor(::ServerInstance& server, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager);
112 // NOLINTEND
113
114public:
115 // destructor thunk
116 // NOLINTBEGIN
117 MCNAPI void $dtor();
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123 MCNAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent);
124
125 MCNAPI bool $isClientSide() const;
126
127 MCNAPI ::std::unique_ptr<::Editor::IEditorPlayer> $createPlayer(::Player& player);
128
129 MCNAPI ::EventResult $onServerLevelInitialized(::ServerInstance& instance, ::Level& level);
130
131 MCNAPI ::EventResult $onStartLeaveGame(::ServerInstance& instance);
132
133 MCNAPI ::Scripting::Result_deprecated<void> $scriptingTeardown();
134
135 MCNAPI ::Scripting::Result_deprecated<void> $scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent);
136
137 MCNAPI ::std::unique_ptr<::FileArchiver::IWorldConverter> $createWorldConverter(
138 ::ILevelListCache& levelListCache,
139 ::Scheduler& scheduler,
140 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
141 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
142 );
143
144 MCNAPI ::Bedrock::PubSub::Subscription
146 // NOLINTEND
147
148public:
149 // vftables
150 // NOLINTBEGIN
151 MCNAPI static void** $vftableForIEditorManager();
152
153 MCNAPI static void** $vftableForEditorServiceList();
154
156
158
160
162 // NOLINTEND
163};
164
165} // namespace Editor
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 ::std::unique_ptr<::FileArchiver::IWorldConverter > $createWorldConverter(::ILevelListCache &levelListCache, ::Scheduler &scheduler, ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository > const &resourcePackRepository, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > keyProvider)
Definition EditorManager.h:29
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:243
Definition Player.h:123
Definition Scheduler.h:13
Definition ServerInstanceEventListener.h:17
Definition ServerInstance.h:74
Definition ScriptingWorldInitializeEvent.h:16
Definition ContextId.h:7
Definition Alias.h:14