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.h"
8#include "mc/editor/EditorManager.h"
9#include "mc/world/events/EventListenerDispatcher.h"
10#include "mc/world/events/EventResult.h"
11#include "mc/world/events/ServerInstanceEventListener.h"
12#include "mc/world/level/FileArchiver.h"
13
14// auto generated forward declare list
15// clang-format off
17class ILevelListCache;
19class Level;
21class Player;
22class Scheduler;
23class ServerInstance;
25namespace Editor { class IEditorPlayer; }
26namespace Editor::Network { class INetworkPayload; }
27namespace Scripting { class GenericModuleBindingFactory; }
28namespace Scripting { struct ContextId; }
29// clang-format on
30
31namespace Editor {
32
34 public ::EventListenerDispatcher<::LevelEventListener>,
36public:
37 // member variables
38 // NOLINTBEGIN
42 // NOLINTEND
43
44public:
45 // prevent constructor by default
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 // vIndex: 11
54 virtual ::EventResult onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent) /*override*/;
55
56 // vIndex: 0
57 virtual ~EditorManagerServer() /*override*/;
58
59 // vIndex: 2
60 virtual bool isClientSide() const /*override*/;
61
62 // vIndex: 3
63 virtual ::std::unique_ptr<::Editor::IEditorPlayer> createPlayer(::Player& player) /*override*/;
64
65 // vIndex: 4
66 virtual ::EventResult onServerLevelInitialized(::ServerInstance& instance, ::Level& level) /*override*/;
67
68 // vIndex: 11
69 virtual ::EventResult onStartLeaveGame(::ServerInstance& instance) /*override*/;
70
71 // vIndex: 6
72 virtual ::Scripting::Result<void> scriptingTeardown() /*override*/;
73
74 // vIndex: 7
75 virtual ::Scripting::Result<void> scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent) /*override*/;
76
77 // vIndex: 4
78 virtual ::std::unique_ptr<::FileArchiver::IWorldConverter> createWorldConverter(
79 ::ILevelListCache& levelListCache,
80 ::Scheduler& scheduler,
81 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
82 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
83 ) /*override*/;
84 // NOLINTEND
85
86public:
87 // member functions
88 // NOLINTBEGIN
89 MCAPI explicit EditorManagerServer(::ServerInstance& server);
90
91 MCAPI void _dispatchToServerPlayers(::Editor::Network::INetworkPayload& payload);
92
93 MCAPI ::std::vector<::std::unique_ptr<::Scripting::GenericModuleBindingFactory>> getServerModuleFactories();
94 // NOLINTEND
95
96public:
97 // constructor thunks
98 // NOLINTBEGIN
99 MCAPI void* $ctor(::ServerInstance& server);
100 // NOLINTEND
101
102public:
103 // destructor thunk
104 // NOLINTBEGIN
105 MCAPI void $dtor();
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent);
112
113 MCFOLD bool $isClientSide() const;
114
115 MCAPI ::std::unique_ptr<::Editor::IEditorPlayer> $createPlayer(::Player& player);
116
117 MCAPI ::EventResult $onServerLevelInitialized(::ServerInstance& instance, ::Level& level);
118
119 MCAPI ::EventResult $onStartLeaveGame(::ServerInstance& instance);
120
121 MCAPI ::Scripting::Result<void> $scriptingTeardown();
122
123 MCAPI ::Scripting::Result<void> $scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent);
124
125 MCAPI ::std::unique_ptr<::FileArchiver::IWorldConverter> $createWorldConverter(
126 ::ILevelListCache& levelListCache,
127 ::Scheduler& scheduler,
128 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
129 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
130 );
131 // NOLINTEND
132
133public:
134 // vftables
135 // NOLINTBEGIN
136 MCAPI static void** $vftableForIEditorManager();
137
138 MCAPI static void** $vftableForEditorServiceList();
139
140 MCAPI static void** $vftableForEditorManagerServiceProvider();
141
142 MCAPI static void** $vftableForServerInstanceEventListener();
143
144 MCAPI static void** $vftableForEventListenerDispatcher();
145 // NOLINTEND
146};
147
148} // namespace Editor
Definition EditorManagerServer.h:35
Definition EditorManager.h:29
Definition INetworkPayload.h:12
Definition EventListenerDispatcher.h:6
Definition IContentKeyProvider.h:13
Definition ILevelListCache.h:27
Definition IResourcePackRepository.h:33
Definition LevelEventListener.h:16
Definition Level.h:234
Definition Player.h:119
Definition Scheduler.h:13
Definition ServerInstanceEventListener.h:17
Definition ServerInstance.h:65
Definition ScriptingWorldInitializeEvent.h:16
Definition ContextId.h:7
Definition Alias.h:14