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
47 // NOLINTEND
48
49public:
50 // prevent constructor by default
51 EditorManagerServer& operator=(EditorManagerServer const&);
52 EditorManagerServer(EditorManagerServer const&);
53 EditorManagerServer();
54
55public:
56 // virtual functions
57 // NOLINTBEGIN
58 virtual ~EditorManagerServer() /*override*/ = default;
59
60 virtual bool isClientSide() const /*override*/;
61
62 virtual ::std::unique_ptr<::Editor::IEditorPlayer> createPlayer(::Player& player) /*override*/;
63
64 virtual ::EventResult onServerLevelInitialized(::ServerInstance& instance, ::Level& level) /*override*/;
65
66 virtual ::EventResult onStartLeaveGame(::ServerInstance& instance) /*override*/;
67
68 virtual ::EventResult onEvent(::ScriptingWorldInitializeEvent const&) /*override*/;
69
70 virtual ::EventResult onLevelTick(::Level&) /*override*/;
71
72 virtual ::Scripting::Result_deprecated<void> scriptingTeardown() /*override*/;
73
74 virtual ::Scripting::Result_deprecated<void> scriptingRebuild() /*override*/;
75
76 virtual bool isEditorModeOrInEditorWorld() const /*override*/;
77
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
90 ::ServerInstance& server,
91 bool isEditorModeEnabled,
92 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager,
93 ::std::unique_ptr<::Editor::EditorInitParams> editorInitParams,
94 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> resourcePackRepository
95 );
96
98
99 MCNAPI ::std::vector<::std::unique_ptr<::Scripting::GenericModuleBindingFactory>> getServerModuleFactories();
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCNAPI void* $ctor(
106 ::ServerInstance& server,
107 bool isEditorModeEnabled,
108 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager,
109 ::std::unique_ptr<::Editor::EditorInitParams> editorInitParams,
110 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> resourcePackRepository
111 );
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&);
126
127 MCNAPI ::EventResult $onLevelTick(::Level&);
128
129 MCNAPI ::Scripting::Result_deprecated<void> $scriptingTeardown();
130
131 MCNAPI ::Scripting::Result_deprecated<void> $scriptingRebuild();
132
133 MCNAPI bool $isEditorModeOrInEditorWorld() const;
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
143 // NOLINTEND
144};
145
146} // namespace Editor
Definition FilePathManager.h:18
MCAPI void * $ctor(::ServerInstance &server, bool isEditorModeEnabled, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > fileManager, ::std::unique_ptr<::Editor::EditorInitParams > editorInitParams, ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository > resourcePackRepository)
MCAPI void _dispatchToServerPlayers(::Editor::Network::INetworkPayload &payload)
MCAPI ::Scripting::Result_deprecated< void > $scriptingTeardown()
MCAPI EditorManagerServer(::ServerInstance &server, bool isEditorModeEnabled, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > fileManager, ::std::unique_ptr<::Editor::EditorInitParams > editorInitParams, ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository > resourcePackRepository)
MCAPI ::std::unique_ptr<::Editor::IEditorPlayer > $createPlayer(::Player &player)
MCAPI::EventResult $onStartLeaveGame(::ServerInstance &instance)
MCAPI bool $isClientSide() const
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 ::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:17
Definition INetworkPayload.h:7
Definition EventListenerDispatcher.h:6
Definition IContentKeyProvider.h:13
Definition ILevelListCache.h:27
Definition IResourcePackRepository.h:35
Definition Level.h:254
Definition Player.h:129
Definition Scheduler.h:14
Definition GenericModuleBindingFactory.h:20
Definition ServerInstanceEventListener.h:17
Definition ServerInstance.h:76
Definition EditorInitParams.h:7
Definition ScriptingWorldInitializeEvent.h:12
Definition Alias.h:14