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/script_core/runtime/scripting/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; }
30// clang-format on
31
32namespace Editor {
33
34class EditorManagerServer : public ::Editor::EditorManager,
35 public ::EventListenerDispatcher<::LevelEventListener>,
37public:
38 // member variables
39 // 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*/ = default;
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&) /*override*/;
68
69 virtual ::EventResult onLevelTick(::Level&) /*override*/;
70
71 virtual ::Scripting::Result_deprecated<void> scriptingTeardown() /*override*/;
72
73 virtual ::Scripting::Result_deprecated<void> scriptingRebuild() /*override*/;
74
75 virtual bool isEditorModeOrInEditorWorld() const /*override*/;
76
77 virtual ::std::unique_ptr<::FileArchiver::IWorldConverter> createWorldConverter(
78 ::ILevelListCache& levelListCache,
79 ::Scheduler& scheduler,
80 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
81 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
82 ) /*override*/;
83 // NOLINTEND
84
85public:
86 // member functions
87 // NOLINTBEGIN
89 ::ServerInstance& server,
90 bool isEditorModeEnabled,
91 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager,
92 ::std::unique_ptr<::Editor::EditorInitParams> editorInitParams
93 );
94
96
97 MCNAPI ::std::vector<::std::unique_ptr<::Scripting::GenericModuleBindingFactory>> getServerModuleFactories();
98 // NOLINTEND
99
100public:
101 // constructor thunks
102 // NOLINTBEGIN
103 MCNAPI void* $ctor(
104 ::ServerInstance& server,
105 bool isEditorModeEnabled,
106 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager,
107 ::std::unique_ptr<::Editor::EditorInitParams> editorInitParams
108 );
109 // NOLINTEND
110
111public:
112 // virtual function thunks
113 // NOLINTBEGIN
114 MCNAPI bool $isClientSide() const;
115
116 MCNAPI ::std::unique_ptr<::Editor::IEditorPlayer> $createPlayer(::Player& player);
117
118 MCNAPI ::EventResult $onServerLevelInitialized(::ServerInstance& instance, ::Level& level);
119
120 MCNAPI ::EventResult $onStartLeaveGame(::ServerInstance& instance);
121
122 MCNAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const&);
123
124 MCNAPI ::EventResult $onLevelTick(::Level&);
125
126 MCNAPI ::Scripting::Result_deprecated<void> $scriptingTeardown();
127
128 MCNAPI ::Scripting::Result_deprecated<void> $scriptingRebuild();
129
130 MCNAPI bool $isEditorModeOrInEditorWorld() const;
131
132 MCNAPI ::std::unique_ptr<::FileArchiver::IWorldConverter> $createWorldConverter(
133 ::ILevelListCache& levelListCache,
134 ::Scheduler& scheduler,
135 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
136 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
137 );
138
139
140 // NOLINTEND
141};
142
143} // namespace Editor
Definition FilePathManager.h:18
MCAPI void _dispatchToServerPlayers(::Editor::Network::INetworkPayload &payload)
MCAPI ::Scripting::Result_deprecated< void > $scriptingTeardown()
MCAPI ::std::unique_ptr<::Editor::IEditorPlayer > $createPlayer(::Player &player)
MCAPI::EventResult $onStartLeaveGame(::ServerInstance &instance)
MCAPI bool $isClientSide() const
MCAPI void * $ctor(::ServerInstance &server, bool isEditorModeEnabled, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > fileManager, ::std::unique_ptr<::Editor::EditorInitParams > editorInitParams)
MCAPI::EventResult $onServerLevelInitialized(::ServerInstance &instance, ::Level &level)
MCAPI ::std::vector<::std::unique_ptr<::Scripting::GenericModuleBindingFactory > > getServerModuleFactories()
MCAPI::EventResult $onEvent(::ScriptingWorldInitializeEvent const &)
MCAPI bool $isEditorModeOrInEditorWorld() const
MCAPI EditorManagerServer(::ServerInstance &server, bool isEditorModeEnabled, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > fileManager, ::std::unique_ptr<::Editor::EditorInitParams > editorInitParams)
MCAPI ::Scripting::Result_deprecated< void > $scriptingRebuild()
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:253
Definition Player.h:128
Definition Scheduler.h:14
Definition GenericModuleBindingFactory.h:20
Definition ServerInstanceEventListener.h:17
Definition ServerInstance.h:63
Definition EditorInitParams.h:7
Definition ScriptingWorldInitializeEvent.h:12
Definition Alias.h:14