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"
17class IEntitlementManager;
19class IStoreCatalogRepository;
32 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IDlcBatcher>> mDlcBatcher;
33 ::ll::TypedStorage<8, 8, ::IDlcValidation&> mDlcValidation;
34 ::ll::TypedStorage<8, 8, ::IContentAcquisition&> mContentAcquisition;
35 ::ll::TypedStorage<8, 8, ::IStoreCatalogRepository&> mStoreCatalogRepository;
36 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager>> mEntitlementManager;
37 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClientInstance;
38 ::ll::TypedStorage<8, 8, ::ILevelListCache&> mLevelListCache;
39 ::ll::TypedStorage<8, 8, ::IDlcBatchModel*> mDlcBatchModel;
40 ::ll::TypedStorage<8, 8, uint64> mDlcSizeToDownload;
41 ::ll::TypedStorage<8, 8, uint64> mDlcIdsToDownload;
42 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::DlcValidationState>> mDlcState;
43 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mExistenceTracker;
44 ::ll::TypedStorage<8, 64, ::std::function<void(::std::optional<::World::PackDownloadError>)>> mOnCheckPackComplete;
45 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnDownloadCompleteCallback;
46 ::ll::TypedStorage<8, 64, ::std::function<void(uint64)>> mOnGetPackSizeCompleteCallback;
51 WorldResourcePackDownloader& operator=(WorldResourcePackDownloader
const&);
52 WorldResourcePackDownloader(WorldResourcePackDownloader
const&);
53 WorldResourcePackDownloader();
58 virtual void downloadPacks(
59 ::std::vector<::std::string>
const& productIds,
60 ::std::function<
void()> onCompleteCallback,
61 ::std::function<
void(::World::PackDownloadError)> onErrorCallback
64 virtual ::World::PackDownloadProgressInfo getProgress() ;
67 getDownloadingPackTitles(::std::function<
void(::std::vector<::std::string>)> packTitlesCallback) ;
69 virtual void cancelDownloadPack() ;
71 virtual void getPackSizes(
72 ::std::vector<::std::string>
const& productIds,
73 ::std::function<
void(uint64)> onCompleteCallback
76 virtual ::World::PackCheckResult
77 checkDlc(::std::string
const& levelId, ::PackIdVersion
const& packIdVersion,
bool const isForRealms)
const
80 virtual ~WorldResourcePackDownloader() ;
86 MCAPI WorldResourcePackDownloader(
87 ::IDlcValidation& dlcValidation,
88 ::IContentAcquisition& contentAcquisition,
89 ::IStoreCatalogRepository& storeCatalogRepository,
90 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
91 ::IClientInstance& clientInstance,
92 ::ILevelListCache& levelListCache
95 MCAPI
void _checkPacks();
98 _hasExpiredRealmsPlusSubscription(::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager)
const;
105 ::IDlcValidation& dlcValidation,
106 ::IContentAcquisition& contentAcquisition,
107 ::IStoreCatalogRepository& storeCatalogRepository,
108 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
109 ::IClientInstance& clientInstance,
110 ::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 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