LeviLamina
Loading...
Searching...
No Matches
EditorManager.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/serviceproviders/EditorManagerServiceProvider.h"
9#include "mc/editor/services/EditorServiceList.h"
10#include "mc/network/EditorConnectionJoinIntent.h"
11#include "mc/server/editor/IEditorManager.h"
12#include "mc/world/level/FileArchiver.h"
13
14// auto generated forward declare list
15// clang-format off
17class ILevelListCache;
20class PacketSender;
21class Scheduler;
22namespace Bedrock::PubSub { class Subscription; }
23namespace Editor { class ServiceProviderCollection; }
24namespace Editor { struct EditorInitParams; }
25// clang-format on
26
27namespace Editor {
28
29class EditorManager : public ::Editor::IEditorManager,
32public:
33 // member variables
34 // NOLINTBEGIN
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 EditorManager& operator=(EditorManager const&);
45 EditorManager(EditorManager const&);
46 EditorManager();
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 virtual ~EditorManager() /*override*/;
52
53 virtual ::std::unique_ptr<::FileArchiver::IWorldConverter> createWorldConverter(
54 ::ILevelListCache& levelListCache,
55 ::Scheduler& scheduler,
56 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
57 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
58 ) /*override*/;
59
60 virtual void cleanupOrphanedTemporaryPlaytestWorlds(::ILevelListCache& levelListCache) const /*override*/;
61
62 virtual void cleanupOrphanedTemporaryRealmsUploadWorlds() /*override*/;
63
64 virtual ::Scripting::Result_deprecated<void> scriptingTeardown() /*override*/;
65
66 virtual ::Scripting::Result_deprecated<void> scriptingRebuild() /*override*/;
67
68 virtual void tryClearPlaytestRoundtripInfo() /*override*/;
69
70 virtual ::Bedrock::PubSub::Subscription
71 registerLevelInitializeSubscriber(::std::function<void(bool, ::Editor::EditorManager&)> func) /*override*/;
72
73 virtual ::Bedrock::PubSub::Subscription
74 registerLevelTickSubscriber(::std::function<void(::Editor::EditorManager&)> func) /*override*/;
75
76 virtual bool isEditorModeEnabled() const /*override*/;
77
78 virtual ::Editor::ServiceProviderCollection& getServiceProviders() /*override*/;
79
80 virtual ::EditorConnectionJoinIntent getEditorConnectionJoinIntent() const /*override*/;
81
82#ifdef LL_PLAT_S
83 virtual void setEditorConnectionJoinIntent(::EditorConnectionJoinIntent) /*override*/;
84#else // LL_PLAT_C
85 virtual void setEditorConnectionJoinIntent(::EditorConnectionJoinIntent intent) /*override*/;
86#endif
87
88 // NOLINTEND
89
90public:
91 // member functions
92 // NOLINTBEGIN
94 bool isClient,
95 bool isEditorModeEnabled,
96 ::PacketSender& packetSender,
97 ::IMinecraftEventing& eventing,
98 ::gsl::not_null<::Editor::EditorInitParams*> params
99 );
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCNAPI void* $ctor(
106 bool isClient,
107 bool isEditorModeEnabled,
108 ::PacketSender& packetSender,
109 ::IMinecraftEventing& eventing,
110 ::gsl::not_null<::Editor::EditorInitParams*> params
111 );
112 // NOLINTEND
113
114public:
115 // destructor thunk
116 // NOLINTBEGIN
117 MCNAPI void $dtor();
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123 MCNAPI ::std::unique_ptr<::FileArchiver::IWorldConverter> $createWorldConverter(
124 ::ILevelListCache& levelListCache,
125 ::Scheduler& scheduler,
126 ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository> const& resourcePackRepository,
127 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> keyProvider
128 );
129
131
133
134 MCNAPI ::Scripting::Result_deprecated<void> $scriptingTeardown();
135
136 MCNAPI ::Scripting::Result_deprecated<void> $scriptingRebuild();
137
139
140 MCNAPI ::Bedrock::PubSub::Subscription
142
143 MCNAPI ::Bedrock::PubSub::Subscription
145
146 MCNAPI bool $isEditorModeEnabled() const;
147
148 MCNAPI ::Editor::ServiceProviderCollection& $getServiceProviders();
149
150 MCNAPI ::EditorConnectionJoinIntent $getEditorConnectionJoinIntent() const;
151
152#ifdef LL_PLAT_S
153 MCNAPI void $setEditorConnectionJoinIntent(::EditorConnectionJoinIntent);
154#else // LL_PLAT_C
155 MCNAPI void $setEditorConnectionJoinIntent(::EditorConnectionJoinIntent intent);
156#endif
157
158
159 // NOLINTEND
160
161public:
162 // vftables
163 // NOLINTBEGIN
165
166 MCNAPI static void** $vftableForEditorServiceList();
167
168 MCNAPI static void** $vftableForIEditorManager();
169 // NOLINTEND
170};
171
172} // namespace Editor
Definition Subscription.h:10
Definition EditorManagerServiceProvider.h:14
Definition EditorManager.h:31
static MCAPI void ** $vftableForEditorManagerServiceProvider()
MCAPI ::std::unique_ptr<::FileArchiver::IWorldConverter > $createWorldConverter(::ILevelListCache &levelListCache, ::Scheduler &scheduler, ::Bedrock::NotNullNonOwnerPtr<::IResourcePackRepository > const &resourcePackRepository, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > keyProvider)
MCAPI::EditorConnectionJoinIntent $getEditorConnectionJoinIntent() const
MCAPI ::Scripting::Result_deprecated< void > $scriptingRebuild()
MCAPI void $setEditorConnectionJoinIntent(::EditorConnectionJoinIntent intent)
MCAPI ::Scripting::Result_deprecated< void > $scriptingTeardown()
static MCAPI void ** $vftableForEditorServiceList()
MCAPI::Bedrock::PubSub::Subscription $registerLevelInitializeSubscriber(::std::function< void(bool, ::Editor::EditorManager &)> func)
MCAPI::Bedrock::PubSub::Subscription $registerLevelTickSubscriber(::std::function< void(::Editor::EditorManager &)> func)
MCAPI void $tryClearPlaytestRoundtripInfo()
MCAPI bool $isEditorModeEnabled() const
MCAPI::Editor::ServiceProviderCollection & $getServiceProviders()
MCAPI void $cleanupOrphanedTemporaryRealmsUploadWorlds()
MCAPI void * $ctor(bool isClient, bool isEditorModeEnabled, ::PacketSender &packetSender, ::IMinecraftEventing &eventing, ::gsl::not_null<::Editor::EditorInitParams * > params)
MCAPI void $cleanupOrphanedTemporaryPlaytestWorlds(::ILevelListCache &levelListCache) const
static MCAPI void ** $vftableForIEditorManager()
MCAPI EditorManager(bool isClient, bool isEditorModeEnabled, ::PacketSender &packetSender, ::IMinecraftEventing &eventing, ::gsl::not_null<::Editor::EditorInitParams * > params)
Definition IEditorManager.h:25
Definition ServiceProviderCollection.h:7
Definition EditorServiceList.h:16
Definition IContentKeyProvider.h:13
Definition ILevelListCache.h:27
Definition IMinecraftEventing.h:147
Definition IResourcePackRepository.h:35
Definition PacketSender.h:17
Definition Scheduler.h:14
Definition EditorInitParams.h:7
Definition Alias.h:14