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