22 using Callback = ::std::function<void(
::Core::Path const&)>;
27 ::ll::TypedStorage<1, 1, bool> mHidden;
28 ::ll::TypedStorage<1, 1, bool> mError;
29 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::Pack>>> mPack;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackAccessStrategy>> mSubpackAccessStrategy;
31 ::ll::TypedStorage<8, 248, ::PackReport> mPackReport;
32 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::Pack>>> mSubPacks;
33 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ResourcePack>>> mSubResourcePacks;
34 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mIconPath;
35 ::ll::TypedStorage<8, 8, double> mLoadTime;
36 ::ll::TypedStorage<1, 1, bool> mIsBaseGamePack;
37 ::ll::TypedStorage<1, 1, bool> mIsSlicePack;
38 ::ll::TypedStorage<8, 64, ::ResourceSignature> mResourceSignature;
39 ::ll::TypedStorage<1, 1, bool> mIsMarkedForRemoval;
49 MCAPI
explicit ResourcePack(::gsl::not_null<::std::shared_ptr<::Pack>> pack);
53 MCAPI
void _createSubpacks();
55 MCAPI
void _generateIconPath();
57 MCAPI
bool _supportsPreload()
const;
59 MCAPI
bool areKnownFilesValid();
68 MCAPI
void generateAssetSet();
70 MCAPI
bool getResource(
::Core::Path const& resourceName, ::std::string& resourceStream,
int subpackIndex)
const;
72 MCAPI
bool hasResource(
::Core::Path const& resourceName,
int subpackIndex)
const;
74 MCAPI
bool isAssetExtractionViable()
const;
76 MCAPI ::std::vector<::Bedrock::Resources::PreloadedPathHandle>
77 preloadPath(
::Core::Path const& packRelativePath,
int subpackIndex,
bool)
const;
79 MCAPI
void setLocale(::std::string
const&
code);
87 MCAPI static ::Core::PathBuffer<::std::string>
const& RESOURCE_PACK_BUG_ICON_PATH();
89 MCAPI static ::Core::PathBuffer<::std::string>
const& RESOURCE_PACK_ICON_PATH();
91 MCAPI static ::Core::PathBuffer<::std::string>
const& TEXTURES_LIST_PATH();
97 MCAPI
void* $ctor(::gsl::not_null<::std::shared_ptr<::Pack>> pack);