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 ::DlcUIWrapperResult tick();
79
80 MCAPI void tryDownload(
81 ::std::string const& productId,
82 ::std::function<void()> callback,
83 bool showProgressScreen,
84 bool showCloseButton,
85 bool showDownloadPrompt
86 );
87
88 MCAPI void tryDownload(
89 ::std::vector<::std::string> const& productIds,
90 ::std::function<void()> callback,
91 bool showProgressScreen,
92 bool showCloseButton,
93 bool showDownloadPrompt
94 );
95
96 MCAPI void
97 tryProcessPendingUpdatesFor(::PackIdVersion const& worldTemplateIdentity, ::std::function<void()> callback);
98
99 MCAPI void tryValidateDlcForRealmsUpload(
100 ::std::string const& levelId,
101 ::PackIdVersion const& worldPackId,
102 ::std::function<void()> callback
103 );
104
105 MCAPI void tryValidateDlcForWorldLoad(
106 ::std::string const& levelId,
107 ::PackIdVersion const& worldPackId,
108 ::std::function<void()> callback
109 );
110
111 MCAPI ~DlcUIWrapper();
112 // NOLINTEND
113
114public:
115 // constructor thunks
116 // NOLINTBEGIN
117 MCAPI void* $ctor(
118 ::IDlcValidation& dlcValidation,
119 ::IDlcBatcher& dlcBatcher,
120 ::ILevelListCache& levelListCache,
121 ::ContentAcquisition& contentAcquisition,
122 ::Bedrock::NotNullNonOwnerPtr<::WorldTemplateManager> const& worldTemplateManager,
123 ::IContentManager& contentManager,
124 ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager> entitlementManager,
125 ::IStoreCatalogRepository& storeCatalogRepository,
126 ::MainMenuScreenModel& mainMenuScreenModel,
127 ::MainMenuScreenController& mainMenuScreenController
128 );
129 // NOLINTEND
130
131public:
132 // destructor thunk
133 // NOLINTBEGIN
134 MCAPI void $dtor();
135 // NOLINTEND
136};
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:57
Definition WorldTemplateManager.h:21
Definition DlcValidationState.h:5
Definition PackIdVersion.h:10