29class ResourcePackManager :
public ::ResourcePackLoader {
37 struct ResourcePackManagerArgs {
41 ::ll::TypedStorage<8, 64, ::std::function<::Core::PathBuffer<::std::string>()>> getPath;
42 ::ll::TypedStorage<8, 8, ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const>
const&> contentTierManager;
43 ::ll::TypedStorage<1, 1, bool> needsToInitialize;
44 ::ll::TypedStorage<8, 64, ::Bedrock::Resources::CategoryFileMapping> categoryFileMapping;
54 ResourcePackManagerArgs& operator=(ResourcePackManagerArgs
const&);
55 ResourcePackManagerArgs(ResourcePackManagerArgs
const&);
56 ResourcePackManagerArgs();
74 ::ll::TypedStorage<8, 64, ::std::unordered_set<::gsl::not_null<::ResourcePackListener*>>> mListeners;
75 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ResourcePackStack>> mLevelStack;
76 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ResourcePackStack>> mGlobalStack;
77 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ResourcePackStack>> mTreatmentStack;
78 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ResourcePackStack>> mBaseGameStack;
79 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackSourceReport>> mLoadingReport;
80 ::ll::TypedStorage<8, 32, ::std::string> mLocaleCode;
81 ::ll::TypedStorage<1, 1, bool> mInitializing;
82 ::ll::TypedStorage<1, 1, bool> mPendingRestack;
83 ::ll::TypedStorage<1, 1, bool> mUseGlobalPackStack;
84 ::ll::TypedStorage<1, 1, bool> mGameplayResourcesLoaded;
85 ::ll::TypedStorage<8, 8, ::std::shared_mutex> mFullStackAccess;
86 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IContentTierManager const>> mContentTierManager;
87 ::ll::TypedStorage<8, 24, ::SemVersion> mFullStackMinEngineVersion_DEPRECATED_DONOTUSE;
92 ResourcePackManager();
97 virtual ~ResourcePackManager() =
default;
108 MCAPI
void _composeFullStack();
113 MCNAPI ::ContentTierIncompatibleReason canSupportPacks();
118 MCAPI
int composeFullStack(
127 MCNAPI ::SemVersion getFullStackMinEngineVersion_DEPRECATED()
const;
129 MCNAPI ::std::vector<::PackInstance> getIncompatiblePacks()
const;
132 MCAPI
void iteratePacks(::std::function<
void(
::PackInstance const&)>
const& pred)
const;
135 MCNAPI
void onLanguageChanged();
137 MCNAPI
void releasePreloadCacheHandles();
143 MCNAPI
void removePacks(::std::vector<::gsl::not_null<::ResourcePack const*>>
const& packs);
145 MCNAPI
void removeUnsupportedPacks();
148 MCAPI
bool setStack(::std::unique_ptr<::ResourcePackStack> stack, ::ResourcePackStackType stackType);
Definition ContentTierIncompatibleReason.h:10
Definition IContentTierManager.h:13