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 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: 7
72 virtual ::Scripting::Result_deprecated<void> scriptingTeardown() /*override*/;
73
74 // vIndex: 8
75 virtual ::Scripting::Result_deprecated<void>
76 scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent) /*override*/;
77
78 // vIndex: 4
79 virtual ::std::unique_ptr<::FileArchiver::IWorldConverter> createWorldConverter(
80 ::ILevelListCache& levelListCache,
81 ::Scheduler& scheduler,
82 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
83 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
84 ) /*override*/;
85 // NOLINTEND
86
87public:
88 // member functions
89 // NOLINTBEGIN
90 MCNAPI explicit EditorManagerServer(::ServerInstance& server);
91
93
94 MCNAPI ::std::vector<::std::unique_ptr<::Scripting::GenericModuleBindingFactory>> getServerModuleFactories();
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCNAPI void* $ctor(::ServerInstance& server);
101 // NOLINTEND
102
103public:
104 // destructor thunk
105 // NOLINTBEGIN
106 MCNAPI void $dtor();
107 // NOLINTEND
108
109public:
110 // virtual function thunks
111 // NOLINTBEGIN
112 MCNAPI ::EventResult $onEvent(::ScriptingWorldInitializeEvent const& scriptingInitializedEvent);
113
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 ::Scripting::Result_deprecated<void> $scriptingTeardown();
123
124 MCNAPI ::Scripting::Result_deprecated<void> $scriptingRebuild(::Scripting::ContextId contextId, bool finalEvent);
125
126 MCNAPI ::std::unique_ptr<::FileArchiver::IWorldConverter> $createWorldConverter(
127 ::ILevelListCache& levelListCache,
128 ::Scheduler& scheduler,
129 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
130 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
131 );
132 // NOLINTEND
133
134public:
135 // vftables
136 // NOLINTBEGIN
137 MCNAPI static void** $vftableForIEditorManager();
138
139 MCNAPI static void** $vftableForEditorServiceList();
140
142
144
146 // NOLINTEND
147};
148
149} // namespace Editor
Definition EditorManagerServer.h:35
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 EditorManagerServer(::ServerInstance &server)
MCAPI::EventResult $onServerLevelInitialized(::ServerInstance &instance, ::Level &level)
MCAPI ::std::vector<::std::unique_ptr<::Scripting::GenericModuleBindingFactory > > getServerModuleFactories()
static MCAPI void ** $vftableForEditorManagerServiceProvider()
MCAPI void * $ctor(::ServerInstance &server)
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:33
Definition Level.h:238
Definition Player.h:119
Definition Scheduler.h:13
Definition ServerInstanceEventListener.h:17
Definition ServerInstance.h:71
Definition ScriptingWorldInitializeEvent.h:16
Definition ContextId.h:7
Definition Alias.h:14