3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/world/IWorldResourcePackDownloader.h"
7#include "mc/client/world/PackDownloadError.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
18class IEntitlementManager;
20class IStoreCatalogRepository;
33 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IDlcBatcher>> mDlcBatcher;
34 ::ll::TypedStorage<8, 8, ::IDlcValidation&> mDlcValidation;
35 ::ll::TypedStorage<8, 8, ::IContentAcquisition&> mContentAcquisition;
36 ::ll::TypedStorage<8, 8, ::IStoreCatalogRepository&> mStoreCatalogRepository;
37 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager>> mEntitlementManager;
38 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClientInstance;
39 ::ll::TypedStorage<8, 8, ::ILevelListCache&> mLevelListCache;
40 ::ll::TypedStorage<8, 8, ::IDlcBatchModel*> mDlcBatchModel;
41 ::ll::TypedStorage<8, 8, uint64> mDlcSizeToDownload;
42 ::ll::TypedStorage<8, 8, uint64> mDlcIdsToDownload;
43 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::DlcValidationState>> mDlcState;
44 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mExistenceTracker;
45 ::ll::TypedStorage<8, 64, ::std::function<void(::std::optional<::World::PackDownloadError>)>> mOnCheckPackComplete;
46 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnDownloadCompleteCallback;
47 ::ll::TypedStorage<8, 64, ::std::function<void(uint64)>> mOnGetPackSizeCompleteCallback;
52 WorldResourcePackDownloader& operator=(WorldResourcePackDownloader
const&);
53 WorldResourcePackDownloader(WorldResourcePackDownloader
const&);
54 WorldResourcePackDownloader();
59 virtual void downloadPacks(
60 ::std::vector<::std::string>
const& productIds,
61 ::std::function<
void()> onCompleteCallback,
62 ::std::function<
void(::World::PackDownloadError)> onErrorCallback
65 virtual ::World::PackDownloadProgressInfo getProgress() ;
68 getDownloadingPackTitles(::std::function<
void(::std::vector<::std::string>)> packTitlesCallback) ;
70 virtual void cancelDownloadPack() ;
72 virtual void getPackSizes(
73 ::std::vector<::std::string>
const& productIds,
74 ::std::function<
void(uint64)> onCompleteCallback
77 virtual ::World::PackCheckResult
78 checkDlc(::std::string
const& levelId, ::PackIdVersion
const& packIdVersion,
bool const isForRealms)
const
85 MCAPI WorldResourcePackDownloader(
86 ::IDlcValidation& dlcValidation,
87 ::IContentAcquisition& contentAcquisition,
88 ::IStoreCatalogRepository& storeCatalogRepository,
89 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
90 ::IClientInstance& clientInstance,
91 ::ILevelListCache& levelListCache
94 MCAPI
void _checkPacks();
96 MCAPI
void _downloadPacks();
99 _hasExpiredRealmsPlusSubscription(::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager)
const;
101 MCAPI
bool _hasRealmsPlusDlcDependencies(
102 ::std::vector<::DlcDependency>
const& dependencies,
103 ::IStoreCatalogRepository
const& storeCatalogRepository
111 ::IDlcValidation& dlcValidation,
112 ::IContentAcquisition& contentAcquisition,
113 ::IStoreCatalogRepository& storeCatalogRepository,
114 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
115 ::IClientInstance& clientInstance,
116 ::ILevelListCache& levelListCache
123 MCAPI
void $downloadPacks(
124 ::std::vector<::std::string>
const& productIds,
125 ::std::function<
void()> onCompleteCallback,
126 ::std::function<
void(::World::PackDownloadError)> onErrorCallback
129 MCAPI ::World::PackDownloadProgressInfo $getProgress();
131 MCAPI
void $getDownloadingPackTitles(::std::function<
void(::std::vector<::std::string>)> packTitlesCallback);
133 MCAPI
void $cancelDownloadPack();
136 $getPackSizes(::std::vector<::std::string>
const& productIds, ::std::function<
void(uint64)> onCompleteCallback);
138 MCAPI ::World::PackCheckResult
139 $checkDlc(::std::string
const& levelId, ::PackIdVersion
const& packIdVersion,
bool const isForRealms)
const;
Definition DlcDependency.h:5
Definition IClientInstance.h:5
Definition IContentAcquisition.h:5
Definition IDlcBatchModel.h:5
Definition IDlcBatcher.h:5
Definition IDlcValidation.h:5
Definition ILevelListCache.h:27
Definition WorldResourcePackDownloader.h:7
static MCAPI void ** $vftable()
Definition DlcValidationState.h:5
Definition PackIdVersion.h:10
Definition PackCheckResult.h:7
Definition PackDownloadProgressInfo.h:7