24 using Callback = ::std::function<void(
::Core::Path const&)>;
29 ::ll::TypedStorage<1, 1, bool> mHidden;
30 ::ll::TypedStorage<1, 1, bool> mError;
31 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::Pack>>> mPack;
32 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackAccessStrategy>> mSubpackAccessStrategy;
33 ::ll::TypedStorage<8, 248, ::PackReport> mPackReport;
34 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::Pack>>> mSubPacks;
35 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ResourcePack>>> mSubResourcePacks;
36 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mIconPath;
37 ::ll::TypedStorage<8, 8, double> mLoadTime;
38 ::ll::TypedStorage<1, 1, bool> mIsBaseGamePack;
39 ::ll::TypedStorage<1, 1, bool> mIsSlicePack;
40 ::ll::TypedStorage<8, 64, ::ResourceSignature> mResourceSignature;
41 ::ll::TypedStorage<1, 1, bool> mIsMarkedForRemoval;
51 MCAPI
explicit ResourcePack(::gsl::not_null<::std::shared_ptr<::Pack>> pack);
55 MCAPI
void _createSubpacks();
57 MCAPI
void _generateIconPath();
59 MCAPI
bool _supportsPreload()
const;
61 MCAPI
bool areKnownFilesValid();
70 MCAPI
void generateAssetSet();
72 MCAPI
bool getResource(
::Core::Path const& resourceName, ::std::string& resourceStream,
int subpackIndex)
const;
74 MCAPI_C ::Json::Value getTexturesList(
int subpackIndex)
const;
76 MCAPI_C
bool hasExtraResourcesForLocale(::std::string
const&
code,
int subpackIndex)
const;
78 MCAPI_C
bool hasIcon(::PackIconType iconType)
const;
80 MCAPI
bool hasResource(
::Core::Path const& resourceName,
int subpackIndex)
const;
82 MCAPI
bool isAssetExtractionViable()
const;
84 MCAPI ::std::vector<::Bedrock::Resources::PreloadedPathHandle>
85 preloadPath(
::Core::Path const& packRelativePath,
int subpackIndex,
bool)
const;
87 MCAPI_C
void regenerateAssetSet();
89 MCAPI
void setLocale(::std::string
const&
code);
91 MCAPI ~ResourcePack();
97 MCAPI static ::Core::PathBuffer<::std::string>
const& RESOURCE_PACK_BUG_ICON_PATH();
99 MCAPI static ::Core::PathBuffer<::std::string>
const& RESOURCE_PACK_ICON_PATH();
101 MCAPI static ::Core::PathBuffer<::std::string>
const& TEXTURES_LIST_PATH();
107 MCAPI
void* $ctor(::gsl::not_null<::std::shared_ptr<::Pack>> pack);