3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/screens/models/ContentType.h"
7#include "mc/client/services/download/IMarketplacePackDownloader.h"
8#include "mc/client/world/IWorldPackCollectionManager.h"
9#include "mc/client/world/PackAction.h"
10#include "mc/client/world/PackActionError.h"
11#include "mc/client/world/WorldContentItemCollectionsModel.h"
12#include "mc/deps/core/utility/NonOwnerPointer.h"
13#include "mc/deps/core/utility/pub_sub/Publisher.h"
14#include "mc/deps/core/utility/pub_sub/Subscription.h"
15#include "mc/util/PublishedValue.h"
21class IEntitlementManager;
38 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IEntitlementManager>> mEntitlementManager;
39 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const>> mContentTierManager;
40 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::IMarketplacePackDownloader>> mMarketplacePackDownloader;
41 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mMarketplacePackDownloaderStatusSub;
42 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ContentSource>> mContentSource;
43 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::MutableContentItemCollection>> mContentItemCollection;
44 ::ll::TypedStorage<8, 48, ::Bedrock::PubSub::Publisher<void(), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0>>
45 mContentItemCollectionDirtyPublisher;
46 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContentItemCollectionViewUtils::SelectedReloadProps>>
48 ::ll::TypedStorage<1, 1, bool> mIsEditorEnabled;
49 ::ll::TypedStorage<8, 96, ::WorldContentItemCollectionsModel> mWorldContentItemCollectionsModel;
50 ::ll::TypedStorage<8, 136, ::PublishedValue<::std::optional<::World::PendingPackAction>>> mPendingPackAction;
58 virtual void setContentSource(::std::unique_ptr<::ContentSource>&& contentSource) ;
60 virtual void resetContent() ;
62 virtual void reloadPacks() ;
64 virtual ::Bedrock::PubSub::Subscription
65 subscribeToContentItemCollectionDirtySubscription(::std::function<
void()>&& callback) ;
67 virtual ::WorldContentItemCollectionsModel getWorldCollectionsModel() const ;
69 virtual ::std::optional<::World::PackActionError> changePackPriority(
70 ::std::
string const& packIdVersion,
71 ::ContentType packType,
76 virtual ::std::optional<::World::PackActionError>
77 activatePack(::std::
string const& packIdVersion, ::ContentType packType,
bool ignoreWarnings) ;
79 virtual ::std::optional<::World::PackActionError>
80 deactivatePack(::std::
string const& packIdVersion, ::ContentType packType,
bool ignoreWarnings) ;
82 virtual ::std::optional<::World::PackActionError> continuePendingPackAction() ;
84 virtual
void clearPendingPackAction() ;
86 virtual ::Bedrock::PubSub::Subscription subscribeToPendingPackActionPublisher(
87 ::std::function<
void(::std::optional<::World::PendingPackAction>)> callback
90 virtual ::std::optional<::PackSettingsInfo>
91 getPackSettingsForPackIdVersion(::std::
string const& packIdVersion) ;
93 virtual ::std::shared_ptr<::PackContentItem const>
94 getPackItemForPackIdVersion(::std::string_view packIdVersion) ;
96 virtual ::Bedrock::PubSub::Subscription subscribeToMarketplacePackDownloadStatus(
97 ::std::function<
void(::IMarketplacePackDownloader::MarketplacePackDownloadStatus)>&& onDownloadStatusChange
100 virtual
void setEditorEnabled(
bool isEditorEnabled) ;
102 virtual
bool getEditorEnabled() const ;
117 ::
std::
string const& packIdVersion,
118 ::ContentType packType,
119 ::World::PackAction packAction,
139 MCNAPI ::Bedrock::PubSub::Subscription
144 MCNAPI ::
std::optional<::World::PackActionError>
147 MCNAPI ::
std::optional<::World::PackActionError>
148 $activatePack(::
std::
string const& packIdVersion, ::ContentType packType,
bool ignoreWarnings);
150 MCNAPI ::
std::optional<::World::PackActionError>
157 MCNAPI ::Bedrock::PubSub::Subscription
Definition ContentItemCollection.h:5
Definition IContentTierManager.h:13
Definition IMarketplacePackDownloader.h:5
Definition MutableContentItemCollection.h:5
Definition WorldPackCollectionManagerImpl.h:7
MCAPI ::std::optional<::PackSettingsInfo > $getPackSettingsForPackIdVersion(::std::string const &packIdVersion)
MCAPI::Bedrock::PubSub::Subscription $subscribeToMarketplacePackDownloadStatus(::std::function< void(::IMarketplacePackDownloader::MarketplacePackDownloadStatus)> &&onDownloadStatusChange)
MCAPI ::std::optional<::World::PackActionError > $deactivatePack(::std::string const &packIdVersion, ::ContentType packType, bool ignoreWarnings)
MCAPI ::std::optional<::World::PackActionError > $changePackPriority(::std::string const &packIdVersion, ::ContentType packType, int fromPosition, int toPosition)
MCAPI::Bedrock::PubSub::Subscription $subscribeToPendingPackActionPublisher(::std::function< void(::std::optional<::World::PendingPackAction >)> callback)
MCAPI void $reloadPacks()
MCAPI::Bedrock::PubSub::Subscription $subscribeToContentItemCollectionDirtySubscription(::std::function< void()> &&callback)
MCAPI void _reloadAndReapplyPendingChanges()
MCAPI ::std::optional<::World::PackActionError > $activatePack(::std::string const &packIdVersion, ::ContentType packType, bool ignoreWarnings)
MCAPI ::std::optional<::World::PackActionError > _movePackContent(::std::string const &packIdVersion, ::ContentType packType, ::World::PackAction packAction, bool ignoreWarnings)
MCAPI ::std::shared_ptr<::ContentItemCollection > _getAvailableContentItemCollection(::ContentType contentType) const
MCAPI::WorldContentItemCollectionsModel _generatePackCollectionsModel()
MCAPI::WorldContentItemCollectionsModel $getWorldCollectionsModel() const
MCAPI void $resetContent()
MCAPI bool $getEditorEnabled() const
MCAPI ::std::optional<::World::PackActionError > $continuePendingPackAction()
MCAPI void $clearPendingPackAction()
MCAPI void $setEditorEnabled(bool isEditorEnabled)
MCAPI ::std::shared_ptr<::PackContentItem const > $getPackItemForPackIdVersion(::std::string_view packIdVersion)
MCAPI void _reloadContentSource()
MCAPI void $setContentSource(::std::unique_ptr<::ContentSource > &&contentSource)
MCAPI ::std::shared_ptr<::ContentItemCollection > _getMarketplacePassContentItemCollection(::ContentType contentType) const
Definition SingleThreaded.h:7
Definition SelectedReloadProps.h:7
Definition ContentSource.h:5
Definition PackContentItem.h:5
Definition PackSettingsInfo.h:5
Definition WorldContentItemCollectionsModel.h:5
Definition PendingPackAction.h:7