LeviLamina
Loading...
Searching...
No Matches
DlcUIWrapper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/DlcUIState.h"
7#include "mc/client/gui/screens/DlcUIWrapperResult.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9
10// auto generated forward declare list
11// clang-format off
13class DlcChecker;
14class IContentManager;
15class IDlcBatcher;
16class IDlcValidation;
17class IEntitlementManager;
18class ILevelListCache;
19class IStoreCatalogRepository;
22class TaskGroup;
25struct PackIdVersion;
26// clang-format on
27
28class DlcUIWrapper {
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::DlcChecker>> mDlcChecker;
33 ::ll::TypedStorage<8, 16, ::std::shared_ptr<bool>> mExistenceTracker;
34 ::ll::TypedStorage<8, 8, ::ContentAcquisition&> mContentAcquisition;
35 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::DlcValidationState>> mDlcState;
36 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnCompleteCallback;
37 ::ll::TypedStorage<4, 4, ::DlcUIState> mDlcUIState;
38 ::ll::TypedStorage<8, 8, ::MainMenuScreenController&> mMainMenuScreenController;
39 ::ll::TypedStorage<8, 8, ::MainMenuScreenModel&> mMainMenuScreenModel;
40 ::ll::TypedStorage<8, 8, ::IDlcValidation&> mDlcValidation;
41 ::ll::TypedStorage<8, 8, ::IDlcBatcher&> mDlcBatcher;
42 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::WorldTemplateManager>> mWorldTemplateManager;
43 ::ll::TypedStorage<8, 8, ::ILevelListCache&> mLevelListCache;
44 ::ll::TypedStorage<8, 8, ::IContentManager&> mContentManager;
45 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager>> mEntitlementManager;
46 ::ll::TypedStorage<8, 8, ::IStoreCatalogRepository&> mStoreCatalogRepository;
47 ::ll::TypedStorage<8, 8, ::gsl::not_null<::std::unique_ptr<::TaskGroup>>> mTaskGroup;
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
52 DlcUIWrapper& operator=(DlcUIWrapper const&);
53 DlcUIWrapper(DlcUIWrapper const&);
54 DlcUIWrapper();
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI DlcUIWrapper(
60 ::IDlcValidation& dlcValidation,
61 ::IDlcBatcher& dlcBatcher,
62 ::ILevelListCache& levelListCache,
63 ::ContentAcquisition& contentAcquisition,
64 ::Bedrock::NotNullNonOwnerPtr<::WorldTemplateManager> const& worldTemplateManager,
65 ::IContentManager& contentManager,
66 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
67 ::IStoreCatalogRepository& storeCatalogRepository,
68 ::MainMenuScreenModel& mainMenuScreenModel,
69 ::MainMenuScreenController& mainMenuScreenController
70 );
71
72 MCAPI void _checkForCopiedPremiumWorldTemplate(::std::shared_ptr<::DlcValidationState> dlcState);
73
74 MCAPI bool _continueAllowed(::std::shared_ptr<::DlcValidationState> dlcState) const;
75
76 MCAPI void _showDlcMissingContentKeyModal();
77
78 MCAPI bool isActive();
79
80 MCAPI ::DlcUIWrapperResult tick();
81
82 MCAPI void tryDownload(
83 ::std::string const& productId,
84 ::std::function<void()> callback,
85 bool showProgressScreen,
86 bool showCloseButton,
87 bool showDownloadPrompt
88 );
89
90 MCAPI void tryDownload(
91 ::std::vector<::std::string> const& productIds,
92 ::std::function<void()> callback,
93 bool showProgressScreen,
94 bool showCloseButton,
95 bool showDownloadPrompt
96 );
97
98 MCAPI void
99 tryProcessPendingUpdatesFor(::PackIdVersion const& worldTemplateIdentity, ::std::function<void()> callback);
100
101 MCAPI void tryValidateDlcForRealmsUpload(
102 ::std::string const& levelId,
103 ::PackIdVersion const& worldPackId,
104 ::std::function<void()> callback
105 );
106
107 MCAPI void tryValidateDlcForWorldLoad(
108 ::std::string const& levelId,
109 ::PackIdVersion const& worldPackId,
110 ::std::function<void()> callback
111 );
112
113 MCAPI ~DlcUIWrapper();
114 // NOLINTEND
115
116public:
117 // constructor thunks
118 // NOLINTBEGIN
119 MCAPI void* $ctor(
120 ::IDlcValidation& dlcValidation,
121 ::IDlcBatcher& dlcBatcher,
122 ::ILevelListCache& levelListCache,
123 ::ContentAcquisition& contentAcquisition,
124 ::Bedrock::NotNullNonOwnerPtr<::WorldTemplateManager> const& worldTemplateManager,
125 ::IContentManager& contentManager,
126 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
127 ::IStoreCatalogRepository& storeCatalogRepository,
128 ::MainMenuScreenModel& mainMenuScreenModel,
129 ::MainMenuScreenController& mainMenuScreenController
130 );
131 // NOLINTEND
132
133public:
134 // destructor thunk
135 // NOLINTBEGIN
136 MCAPI void $dtor();
137 // NOLINTEND
138};
Definition ContentAcquisition.h:5
Definition DlcChecker.h:5
Definition DlcUIWrapper.h:5
Definition IContentManager.h:5
Definition IDlcBatcher.h:5
Definition IDlcValidation.h:5
Definition ILevelListCache.h:27
Definition MainMenuScreenController.h:5
Definition MainMenuScreenModel.h:5
Definition TaskGroup.h:55
Definition WorldTemplateManager.h:22
Definition DlcValidationState.h:5
Definition PackIdVersion.h:10