Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ContentManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/models/ContentFlags.h"
7#include "mc/client/gui/screens/models/ContentManagerContextCollection.h"
8#include "mc/client/gui/screens/models/ContentType.h"
9#include "mc/client/gui/screens/models/IContentManager.h"
10#include "mc/deps/core/file/PathBuffer.h"
11#include "mc/deps/core/resource/PackType.h"
12#include "mc/deps/core/threading/Async.h"
13#include "mc/deps/core/utility/NonOwnerPointer.h"
14#include "mc/deps/core/utility/pub_sub/Publisher.h"
15#include "mc/world/level/LevelListCacheObserver.h"
16
17// auto generated forward declare list
18// clang-format off
22class ContentIdentity;
29class IEntitlementManager;
30class ILevelListCache;
36class Pack;
38class PackSource;
40class StoreCatalogRepository;
41class TaskGroup;
43struct ContentItem;
44struct ContentSource;
47namespace Bedrock::PubSub { class Subscription; }
48namespace Bedrock::PubSub::ThreadModel { struct SingleThreaded; }
49namespace ContentManagerUtils { class SourcesAsyncReloader; }
50namespace Core { class FilePathManager; }
51namespace Realms { class RealmsServicePackSource; }
52namespace Realms { struct Content; }
53namespace Realms { struct RealmId; }
54namespace StorageManager { class ContentItemProvider; }
55namespace StorageManager { class IContentHandler; }
56namespace StorageManager { class WorldConverter; }
57namespace mce { class UUID; }
58// clang-format on
59
62 public ::std::enable_shared_from_this<::ContentManager> {
63public:
64 // member variables
65 // NOLINTBEGIN
66 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::ContentManager>> mSelf;
67 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IWorldTemplateManager>> mWorldTemplateManager;
68 ::ll::TypedStorage<8, 8, ::IPackManifestFactory&> mPackManifestFactory;
69 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::MutableContentItemCollection>>> mContent;
70 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::ContentSource>>> mContentSources;
71 ::ll::TypedStorage<8, 24, ::ContentManagerContextCollection> mContexts;
72 ::ll::TypedStorage<8, 8, uint64> mContentId;
73 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::IContentCatalogPackSource>> mCatalogResourcePackSource;
74 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::Realms::RealmsServicePackSource>>>
75 mRealmsServicePackSources;
76 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::CachedHostPackIdProvider>> mCachedHostPackIdProvider;
77 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ContentManagerProxy>> mProxy;
78 ::ll::TypedStorage<1, 1, bool> mInitialized;
79 ::ll::TypedStorage<8, 32, ::std::string const> WORLD_RESOURCE_PACK_FILENAME;
80 ::ll::TypedStorage<8, 32, ::std::string const> WORLD_BEHAVIOR_PACK_FILENAME;
81 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager>> mFilePathManager;
82 ::ll::TypedStorage<8, 8, ::std::shared_mutex> mMutex;
83 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IContentManagerFactory>> mFactory;
84 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::ContentManagerUtils::SourcesAsyncReloader>>>
85 mReloadSourcesAsync;
86 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager>> mEntitlementManager;
87 ::ll::TypedStorage<8, 48, ::Bedrock::PubSub::Publisher<void(), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0>>
88 mReloadViewsPublisher;
89 ::ll::TypedStorage<8, 48, ::Bedrock::PubSub::Publisher<void(), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0>>
90 mDeleteContentPublisher;
91 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::StorageManager::ContentItemProvider>> mWeakStorageContentItemProvider;
92 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::StorageManager::IContentHandler>>>
93 mStorageContentHandler;
94 ::ll::TypedStorage<8, 64, ::std::function<::std::shared_ptr<::StorageManager::WorldConverter>()>>
95 mStorageWorldConverterConstructor;
96 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::StorageManager::WorldConverter>> mWeakStorageWorldConverter;
97 // NOLINTEND
98
99public:
100 // prevent constructor by default
101 ContentManager& operator=(ContentManager const&);
102 ContentManager(ContentManager const&);
103 ContentManager();
104
105public:
106 // virtual functions
107 // NOLINTBEGIN
108 virtual ~ContentManager() /*override*/ = default;
109
110 virtual ::ContentSource* loadContent(::ContentType contentType, ::ContentFlags flags) /*override*/;
111
112 virtual ::ContentSource* loadContent(::InvalidPacksFilterGroup const& invalidFilter) /*override*/;
113
114 virtual ::ContentSource*
115 loadContentForLevel(::std::string const& levelId, ::mce::UUID const& premiumTemplateId) /*override*/;
116
117 virtual ::ContentSource* loadContentForRealm(int64 const realmId) /*override*/;
118
119 virtual ::std::unique_ptr<::ContentSource> loadContentForRealmsWorld(
120 ::Realms::RealmId realmId,
121 ::std::vector<::Realms::Content> const& servicePackData
122 ) /*override*/;
123
124 virtual void addPackSourceFromPremiumTemplate(
125 ::RealmPackManagerContentSource* source,
126 ::mce::UUID const& premiumTemplateId,
127 ::PackType packType
128 ) /*override*/;
129
130 virtual void addRealmsUnknownPackSources(::RealmPackManagerContentSource* contentSource) /*override*/;
131
132 virtual void addPacksToRealmsUnknownPackSource(::std::unique_ptr<::Pack> pack) /*override*/;
133
134 virtual void addCachedHostPackIdProvider(::std::weak_ptr<::CachedHostPackIdProvider> provider) /*override*/;
135
136 virtual void clearRealmsUnknownPackSource() /*override*/;
137
138 virtual void removeUnneededItemFromRealmsUnknownContentSource(::mce::UUID const& id) /*override*/;
139
140 virtual ::gsl::not_null<::std::shared_ptr<::ContentItemCollection>>
141 getGlobalResourcePackCollection(bool isEditorMode) /*override*/;
142
143 virtual ::std::unique_ptr<::IContentManagerContext>
144 createContext(::std::function<bool(::std::shared_ptr<::ContentItem const> const&)> contextPredicate) /*override*/;
145
146 virtual void removeContext(::IContentManagerContext& context) /*override*/;
147
148 virtual ::std::vector<::std::unique_ptr<::ContentSource>> const& getSources() const /*override*/;
149
150 virtual ::std::vector<::std::shared_ptr<::ContentItem>> getContentItems() const /*override*/;
151
152 virtual ::std::shared_ptr<::IVersionedContentItemCollection const> getVersionedItems() const /*override*/;
153
154 virtual void enableCatalogPackSource() /*override*/;
155
156 virtual void generateItems(::ContentSource* source) /*override*/;
157
158 virtual ::Bedrock::Threading::Async<void> refreshPackSources(bool saveSources) /*override*/;
159
160 virtual ::Bedrock::Threading::Async<void> reloadSources(bool saveSources) /*override*/;
161
162 virtual void reloadItems() /*override*/;
163
164 virtual void reloadViews() /*override*/;
165
166 virtual void populateDependencies() const /*override*/;
167
168 virtual void deleteContent(::std::shared_ptr<::ContentItem const> const& contentItem) /*override*/;
169
170 virtual void deleteContent(::std::vector<::std::shared_ptr<::ContentItem const>> const& contentItems) /*override*/;
171
172 virtual void deleteContentFiles(::std::shared_ptr<::ContentItem const> const& contentItem) /*override*/;
173
174 virtual void
175 deleteContentFiles(::std::vector<::std::shared_ptr<::ContentItem const>> const& contentItems) /*override*/;
176
177 virtual void postDeleteContent(::std::shared_ptr<::ContentItem const> const& contentItem) /*override*/;
178
179 virtual void
180 postDeleteContent(::std::vector<::std::shared_ptr<::ContentItem const>> const& contentItems) /*override*/;
181
182 virtual uint64 generateContentId() /*override*/;
183
184 virtual ::Core::PathBuffer<::std::string> const getWorldResourcePath(::std::string const& levelId) const
185 /*override*/;
186
187 virtual ::Core::PathBuffer<::std::string> const getWorldBehaviorPath(::std::string const& levelId) const
188 /*override*/;
189
190 virtual ::Core::PathBuffer<::std::string> const getWorldResourceFolder(::std::string const& levelId) const
191 /*override*/;
192
193 virtual ::Core::PathBuffer<::std::string> const getWorldBehaviorFolder(::std::string const& levelId) const
194 /*override*/;
195
196 virtual ::Core::PathBuffer<::std::string> const getWorldPath(::std::string const& levelId) const /*override*/;
197
198 virtual ::Core::PathBuffer<::std::string> const&
199 getPremiumWorldTemplateFolder(::ContentIdentity const& templateId) /*override*/;
200
201 virtual ::ContentManagerProxy* getProxy() /*override*/;
202
203 virtual void beginAsyncInit(::TaskGroup& taskGroup) /*override*/;
204
205 virtual bool isInitialized() const /*override*/;
206
207 virtual void onLanguageChanged() /*override*/;
208
209 virtual void refreshContentCatalogPackSource() /*override*/;
210
211 virtual ::Bedrock::PubSub::Subscription
212 refreshContentCatalogPackSource(::std::function<void()>&& callback) /*override*/;
213
214 virtual ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> getFilePathManager() /*override*/;
215
216 virtual void onLevelDeleted(::std::string const& levelId) /*override*/;
217
218 virtual void onRealmsReset(::Realms::RealmId const realmsId) /*override*/;
219
220 virtual ::Bedrock::PubSub::Subscription
221 subscribeToSourcesReloadedAsyncCompleted(::std::function<void()>&& onSourcesReloadedAsyncCallback) /*override*/;
222
223 virtual ::std::shared_ptr<::StorageManager::ContentItemProvider> getStorageContentItemProvider() /*override*/;
224
225 virtual ::StorageManager::IContentHandler& getStorageContentHandler() /*override*/;
226
227 virtual ::std::shared_ptr<::StorageManager::WorldConverter> getStorageWorldConverter() /*override*/;
228
229 virtual ::Bedrock::PubSub::Subscription registerToReloadViews(::std::function<void()> callback) /*override*/;
230
231 virtual ::Bedrock::PubSub::Subscription registerToDeleteContent(::std::function<void()> callback) /*override*/;
232 // NOLINTEND
233
234public:
235 // member functions
236 // NOLINTBEGIN
237 MCNAPI ContentManager(
238 ::ILevelListCache& levelListCache,
239 ::Bedrock::NotNullNonOwnerPtr<::WorldTemplateManager> const& worldTemplateManager,
240 ::IResourcePackRepository& resourcePackRepository,
241 ::ResourcePackManager& resourcePackManager,
242 ::PackManifestFactory& packManifestFactory,
243 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
244 ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const> const& contentTierManager,
245 ::Bedrock::NotNullNonOwnerPtr<::StoreCatalogRepository> const& storeCatalog,
246 ::Bedrock::NotNullNonOwnerPtr<::ContentCatalogService> const& contentCatalogService,
247 ::ClientPackSourceFactory& packSourceFactory,
248 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& filePathManager,
249 ::std::unique_ptr<::StorageManager::IContentHandler> storageContentHandler,
250 ::std::function<::std::shared_ptr<::StorageManager::WorldConverter>()> storageWorldConverterConstructor
251 );
252
253 MCNAPI void _removeContentItemsFromSource(::gsl::not_null<::ContentSource*> source);
254
255 MCNAPI void _retrievePackSources(::PackType packType, ::std::vector<::PackSource*>& packSources);
256
257 MCNAPI ::Bedrock::NotNullNonOwnerPtr<::Realms::RealmsServicePackSource> _updateOrCreateRealmsServicePackSource(
258 int64 realmId,
259 ::PackType packType,
260 ::std::vector<::gsl::not_null<::std::shared_ptr<::Pack>>>&& servicePackData
261 );
262 // NOLINTEND
263
264public:
265 // static functions
266 // NOLINTBEGIN
267 MCNAPI static void _deleteContent(
268 ::std::vector<::std::shared_ptr<::ContentItem const>> const& contentItems,
269 ::std::function<void(::ContentSource&, ::std::vector<::std::shared_ptr<::ContentItem const>> const&)>
270 deleteItemCallback
271 );
272 // NOLINTEND
273
274public:
275 // constructor thunks
276 // NOLINTBEGIN
277 MCNAPI void* $ctor(
278 ::ILevelListCache& levelListCache,
279 ::Bedrock::NotNullNonOwnerPtr<::WorldTemplateManager> const& worldTemplateManager,
280 ::IResourcePackRepository& resourcePackRepository,
281 ::ResourcePackManager& resourcePackManager,
282 ::PackManifestFactory& packManifestFactory,
283 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
284 ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const> const& contentTierManager,
285 ::Bedrock::NotNullNonOwnerPtr<::StoreCatalogRepository> const& storeCatalog,
286 ::Bedrock::NotNullNonOwnerPtr<::ContentCatalogService> const& contentCatalogService,
287 ::ClientPackSourceFactory& packSourceFactory,
288 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& filePathManager,
289 ::std::unique_ptr<::StorageManager::IContentHandler> storageContentHandler,
290 ::std::function<::std::shared_ptr<::StorageManager::WorldConverter>()> storageWorldConverterConstructor
291 );
292 // NOLINTEND
293
294public:
295 // virtual function thunks
296 // NOLINTBEGIN
297 MCNAPI ::ContentSource* $loadContent(::ContentType contentType, ::ContentFlags flags);
298
299 MCNAPI ::ContentSource* $loadContent(::InvalidPacksFilterGroup const& invalidFilter);
300
301 MCNAPI ::ContentSource* $loadContentForLevel(::std::string const& levelId, ::mce::UUID const& premiumTemplateId);
302
303 MCNAPI ::ContentSource* $loadContentForRealm(int64 const realmId);
304
305 MCNAPI ::std::unique_ptr<::ContentSource>
306 $loadContentForRealmsWorld(::Realms::RealmId realmId, ::std::vector<::Realms::Content> const& servicePackData);
307
310 ::mce::UUID const& premiumTemplateId,
311 ::PackType packType
312 );
313
315
316 MCNAPI void $addPacksToRealmsUnknownPackSource(::std::unique_ptr<::Pack> pack);
317
318 MCNAPI void $addCachedHostPackIdProvider(::std::weak_ptr<::CachedHostPackIdProvider> provider);
319
321
322 MCNAPI void $removeUnneededItemFromRealmsUnknownContentSource(::mce::UUID const& id);
323
324 MCNAPI ::gsl::not_null<::std::shared_ptr<::ContentItemCollection>>
326
327 MCNAPI ::std::unique_ptr<::IContentManagerContext>
328 $createContext(::std::function<bool(::std::shared_ptr<::ContentItem const> const&)> contextPredicate);
329
331
332 MCNAPI ::std::vector<::std::unique_ptr<::ContentSource>> const& $getSources() const;
333
334 MCNAPI ::std::vector<::std::shared_ptr<::ContentItem>> $getContentItems() const;
335
336 MCNAPI ::std::shared_ptr<::IVersionedContentItemCollection const> $getVersionedItems() const;
337
339
340 MCNAPI void $generateItems(::ContentSource* source);
341
342 MCNAPI ::Bedrock::Threading::Async<void> $refreshPackSources(bool saveSources);
343
344 MCNAPI ::Bedrock::Threading::Async<void> $reloadSources(bool saveSources);
345
346 MCNAPI void $reloadItems();
347
348 MCNAPI void $reloadViews();
349
350 MCNAPI void $populateDependencies() const;
351
352 MCNAPI void $deleteContent(::std::shared_ptr<::ContentItem const> const& contentItem);
353
354 MCNAPI void $deleteContent(::std::vector<::std::shared_ptr<::ContentItem const>> const& contentItems);
355
356 MCNAPI void $deleteContentFiles(::std::shared_ptr<::ContentItem const> const& contentItem);
357
358 MCNAPI void $deleteContentFiles(::std::vector<::std::shared_ptr<::ContentItem const>> const& contentItems);
359
360 MCNAPI void $postDeleteContent(::std::shared_ptr<::ContentItem const> const& contentItem);
361
362 MCNAPI void $postDeleteContent(::std::vector<::std::shared_ptr<::ContentItem const>> const& contentItems);
363
364 MCNAPI uint64 $generateContentId();
365
366 MCNAPI ::Core::PathBuffer<::std::string> const $getWorldResourcePath(::std::string const& levelId) const;
367
368 MCNAPI ::Core::PathBuffer<::std::string> const $getWorldBehaviorPath(::std::string const& levelId) const;
369
370 MCNAPI ::Core::PathBuffer<::std::string> const $getWorldResourceFolder(::std::string const& levelId) const;
371
372 MCNAPI ::Core::PathBuffer<::std::string> const $getWorldBehaviorFolder(::std::string const& levelId) const;
373
374 MCNAPI ::Core::PathBuffer<::std::string> const $getWorldPath(::std::string const& levelId) const;
375
376 MCNAPI ::Core::PathBuffer<::std::string> const& $getPremiumWorldTemplateFolder(::ContentIdentity const& templateId);
377
379
380 MCNAPI void $beginAsyncInit(::TaskGroup& taskGroup);
381
382 MCNAPI bool $isInitialized() const;
383
384 MCNAPI void $onLanguageChanged();
385
387
388 MCNAPI ::Bedrock::PubSub::Subscription $refreshContentCatalogPackSource(::std::function<void()>&& callback);
389
390 MCNAPI ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> $getFilePathManager();
391
392 MCNAPI void $onLevelDeleted(::std::string const& levelId);
393
394 MCNAPI void $onRealmsReset(::Realms::RealmId const realmsId);
395
396 MCNAPI ::Bedrock::PubSub::Subscription
397 $subscribeToSourcesReloadedAsyncCompleted(::std::function<void()>&& onSourcesReloadedAsyncCallback);
398
399 MCNAPI ::std::shared_ptr<::StorageManager::ContentItemProvider> $getStorageContentItemProvider();
400
401 MCNAPI ::StorageManager::IContentHandler& $getStorageContentHandler();
402
403 MCNAPI ::std::shared_ptr<::StorageManager::WorldConverter> $getStorageWorldConverter();
404
405 MCNAPI ::Bedrock::PubSub::Subscription $registerToReloadViews(::std::function<void()> callback);
406
407 MCNAPI ::Bedrock::PubSub::Subscription $registerToDeleteContent(::std::function<void()> callback);
408 // NOLINTEND
409};
Definition Subscription.h:10
Definition CachedHostPackIdProvider.h:5
Definition ClientPackSourceFactory.h:5
Definition ContentCatalogService.h:5
Definition ContentIdentity.h:8
Definition ContentItemCollection.h:5
Definition ContentManagerProxy.h:5
Definition SourcesAsyncReloader.h:7
Definition ContentManager.h:5
MCAPI ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > $getFilePathManager()
MCAPI ::Core::PathBuffer<::std::string > const $getWorldBehaviorPath(::std::string const &levelId) const
MCAPI void $postDeleteContent(::std::shared_ptr<::ContentItem const > const &contentItem)
MCAPI ::Core::PathBuffer<::std::string > const $getWorldBehaviorFolder(::std::string const &levelId) const
MCAPI::Bedrock::PubSub::Subscription $subscribeToSourcesReloadedAsyncCompleted(::std::function< void()> &&onSourcesReloadedAsyncCallback)
MCAPI void $addPackSourceFromPremiumTemplate(::RealmPackManagerContentSource *source, ::mce::UUID const &premiumTemplateId, ::PackType packType)
MCAPI void $removeUnneededItemFromRealmsUnknownContentSource(::mce::UUID const &id)
MCAPI void $onLevelDeleted(::std::string const &levelId)
MCAPI::ContentSource * $loadContentForLevel(::std::string const &levelId, ::mce::UUID const &premiumTemplateId)
MCAPI ::Bedrock::Threading::Async< void > $reloadSources(bool saveSources)
MCAPI ::Core::PathBuffer<::std::string > const $getWorldResourceFolder(::std::string const &levelId) const
MCAPI void $addCachedHostPackIdProvider(::std::weak_ptr<::CachedHostPackIdProvider > provider)
MCAPI::StorageManager::IContentHandler & $getStorageContentHandler()
MCAPI bool $isInitialized() const
MCAPI void _removeContentItemsFromSource(::gsl::not_null<::ContentSource * > source)
MCAPI void $clearRealmsUnknownPackSource()
MCAPI ::std::vector<::std::unique_ptr<::ContentSource > > const & $getSources() const
MCAPI ::Core::PathBuffer<::std::string > const $getWorldResourcePath(::std::string const &levelId) const
MCAPI void $enableCatalogPackSource()
MCAPI::ContentSource * $loadContent(::ContentType contentType, ::ContentFlags flags)
MCAPI::ContentManagerProxy * $getProxy()
MCAPI ::std::shared_ptr<::IVersionedContentItemCollection const > $getVersionedItems() const
MCAPI ::Bedrock::Threading::Async< void > $refreshPackSources(bool saveSources)
MCAPI::ContentSource * $loadContentForRealm(int64 const realmId)
MCAPI void $deleteContent(::std::shared_ptr<::ContentItem const > const &contentItem)
MCAPI void $reloadViews()
MCAPI ::Core::PathBuffer<::std::string > const & $getPremiumWorldTemplateFolder(::ContentIdentity const &templateId)
MCAPI void _retrievePackSources(::PackType packType, ::std::vector<::PackSource * > &packSources)
MCAPI ::std::vector<::std::shared_ptr<::ContentItem > > $getContentItems() const
MCAPI uint64 $generateContentId()
MCAPI void $beginAsyncInit(::TaskGroup &taskGroup)
MCAPI void $deleteContentFiles(::std::shared_ptr<::ContentItem const > const &contentItem)
MCAPI void $addRealmsUnknownPackSources(::RealmPackManagerContentSource *contentSource)
MCAPI void $removeContext(::IContentManagerContext &context)
MCAPI ::Core::PathBuffer<::std::string > const $getWorldPath(::std::string const &levelId) const
MCAPI ::gsl::not_null<::std::shared_ptr<::ContentItemCollection > > $getGlobalResourcePackCollection(bool isEditorMode)
MCAPI void $onRealmsReset(::Realms::RealmId const realmsId)
MCAPI ::std::unique_ptr<::ContentSource > $loadContentForRealmsWorld(::Realms::RealmId realmId, ::std::vector<::Realms::Content > const &servicePackData)
MCAPI void $generateItems(::ContentSource *source)
MCAPI ::Bedrock::NotNullNonOwnerPtr<::Realms::RealmsServicePackSource > _updateOrCreateRealmsServicePackSource(int64 realmId, ::PackType packType, ::std::vector<::gsl::not_null<::std::shared_ptr<::Pack > > > &&servicePackData)
MCAPI void $reloadItems()
MCAPI::Bedrock::PubSub::Subscription $registerToReloadViews(::std::function< void()> callback)
MCAPI::Bedrock::PubSub::Subscription $registerToDeleteContent(::std::function< void()> callback)
MCAPI ::std::shared_ptr<::StorageManager::WorldConverter > $getStorageWorldConverter()
MCAPI ::std::shared_ptr<::StorageManager::ContentItemProvider > $getStorageContentItemProvider()
MCAPI void $addPacksToRealmsUnknownPackSource(::std::unique_ptr<::Pack > pack)
static MCAPI void _deleteContent(::std::vector<::std::shared_ptr<::ContentItem const > > const &contentItems, ::std::function< void(::ContentSource &, ::std::vector<::std::shared_ptr<::ContentItem const > > const &)> deleteItemCallback)
MCAPI void * $ctor(::ILevelListCache &levelListCache, ::Bedrock::NotNullNonOwnerPtr<::WorldTemplateManager > const &worldTemplateManager, ::IResourcePackRepository &resourcePackRepository, ::ResourcePackManager &resourcePackManager, ::PackManifestFactory &packManifestFactory, ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager > entitlementManager, ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const > const &contentTierManager, ::Bedrock::NotNullNonOwnerPtr<::StoreCatalogRepository > const &storeCatalog, ::Bedrock::NotNullNonOwnerPtr<::ContentCatalogService > const &contentCatalogService, ::ClientPackSourceFactory &packSourceFactory, ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager > const &filePathManager, ::std::unique_ptr<::StorageManager::IContentHandler > storageContentHandler, ::std::function<::std::shared_ptr<::StorageManager::WorldConverter >()> storageWorldConverterConstructor)
MCAPI void $onLanguageChanged()
MCAPI void $populateDependencies() const
MCAPI ::std::unique_ptr<::IContentManagerContext > $createContext(::std::function< bool(::std::shared_ptr<::ContentItem const > const &)> contextPredicate)
MCAPI void $refreshContentCatalogPackSource()
Definition FilePathManager.h:18
Definition IContentCatalogPackSource.h:5
Definition IContentManagerContext.h:5
Definition IContentManagerFactory.h:5
Definition IContentManager.h:5
Definition IContentTierManager.h:13
Definition ILevelListCache.h:27
Definition IPackManifestFactory.h:17
Definition IResourcePackRepository.h:36
Definition IVersionedContentItemCollection.h:5
Definition IWorldTemplateManager.h:17
Definition LevelListCacheObserver.h:13
Definition MutableContentItemCollection.h:5
Definition PackManifestFactory.h:21
Definition PackSource.h:28
Definition Pack.h:28
Definition RealmsServicePackSource.h:18
Definition ResourcePackManager.h:29
Definition ContentItemProvider.h:7
Definition IContentHandler.h:7
Definition WorldConverter.h:7
Definition TaskGroup.h:85
Definition WorldTemplateManager.h:20
Definition UUID.h:8
STL namespace.
Definition ContentItem.h:5
Definition ContentSource.h:5
Definition InvalidPacksFilterGroup.h:5
Definition RealmPackManagerContentSource.h:5
Definition Content.h:7
Definition RealmId.h:7
Definition context.h:5