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::Network { class INetworkPayload; }
28namespace Scripting { class GenericModuleBindingFactory; }
29namespace Scripting { struct ContextId; }
30// clang-format on
31
32namespace Editor {
33
35 public ::EventListenerDispatcher<::LevelEventListener>,
37public:
38 // member variables
39 // NOLINTBEGIN
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 // vIndex: 11
56 virtual ::EventResult onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent) /*override*/;
57
58 // vIndex: 0
59 virtual ~EditorManagerServer() /*override*/;
60
61 // vIndex: 2
62 virtual bool isClientSide() const /*override*/;
63
64 // vIndex: 3
65 virtual ::std::unique_ptr<::Editor::IEditorPlayer> createPlayer(::Player& player) /*override*/;
66
67 // vIndex: 4
68 virtual ::EventResult onServerLevelInitialized(::ServerInstance& instance, ::Level& level) /*override*/;
69
70 // vIndex: 11
71 virtual ::EventResult onStartLeaveGame(::ServerInstance& instance) /*override*/;
72
73 // vIndex: 7
74 virtual ::Scripting::Result_deprecated<void> scriptingTeardown() /*override*/;
75
76 // vIndex: 8
77 virtual ::Scripting::Result_deprecated<void>
78 scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent) /*override*/;
79
80 // vIndex: 4
81 virtual ::std::unique_ptr<::FileArchiver::IWorldConverter> createWorldConverter(
82 ::ILevelListCache& levelListCache,
83 ::Scheduler& scheduler,
84 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
85 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
86 ) /*override*/;
87 // NOLINTEND
88
89public:
90 // member functions
91 // NOLINTBEGIN
92 MCNAPI
93 EditorManagerServer(::ServerInstance& server, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager);
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(::ServerInstance& server, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> fileManager);
104 // NOLINTEND
105
106public:
107 // destructor thunk
108 // NOLINTBEGIN
109 MCNAPI void $dtor();
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115 MCNAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent);
116
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 ::Scripting::Result_deprecated<void> $scriptingTeardown();
126
127 MCNAPI ::Scripting::Result_deprecated<void> $scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent);
128
129 MCNAPI ::std::unique_ptr<::FileArchiver::IWorldConverter> $createWorldConverter(
130 ::ILevelListCache& levelListCache,
131 ::Scheduler& scheduler,
132 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
133 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
134 );
135 // NOLINTEND
136
137public:
138 // vftables
139 // NOLINTBEGIN
140 MCNAPI static void** $vftableForIEditorManager();
141
142 MCNAPI static void** $vftableForEditorServiceList();
143
145
147
149 // NOLINTEND
150};
151
152} // namespace Editor
Definition EditorManagerServer.h:36
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)
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()
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 EventListenerDispatcher.h:6
Definition IContentKeyProvider.h:13
Definition ILevelListCache.h:27
Definition IResourcePackRepository.h:34
Definition Level.h:239
Definition Player.h:120
Definition Scheduler.h:13
Definition ServerInstanceEventListener.h:17
Definition ServerInstance.h:73
Definition ScriptingWorldInitializeEvent.h:16
Definition ContextId.h:7
Definition Alias.h:14