21 using Callback = ::std::function<void(
::Core::Path const&)>;
26 ::ll::TypedStorage<1, 1, bool> mHidden;
27 ::ll::TypedStorage<1, 1, bool> mError;
28 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::Pack>>> mPack;
29 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::PackAccessStrategy>> mSubpackAccessStrategy;
30 ::ll::TypedStorage<8, 248, ::PackReport> mPackReport;
31 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::Pack>>> mSubPacks;
32 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ResourcePack>>> mSubResourcePacks;
33 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mIconPath;
34 ::ll::TypedStorage<8, 8, double> mLoadTime;
35 ::ll::TypedStorage<1, 1, bool> mIsBaseGamePack;
36 ::ll::TypedStorage<1, 1, bool> mIsSlicePack;
37 ::ll::TypedStorage<8, 64, ::ResourceSignature> mResourceSignature;
38 ::ll::TypedStorage<1, 1, bool> mIsMarkedForRemoval;
48 MCAPI
explicit ResourcePack(::gsl::not_null<::std::shared_ptr<::Pack>> pack);
52 MCAPI
void _createSubpacks();
54 MCAPI
void _generateIconPath();
56 MCAPI
bool areKnownFilesValid();
65 MCAPI
void generateAssetSet();
67 MCAPI
bool getResource(
::Core::Path const& resourceName, ::std::string& resourceStream,
int subpackIndex)
const;
69 MCAPI
bool hasResource(
::Core::Path const& resourceName,
int subpackIndex)
const;
71 MCAPI
bool isAssetExtractionViable()
const;
73 MCAPI
void setLocale(::std::string
const&
code);
81 MCAPI static ::Core::PathBuffer<::std::string>
const& RESOURCE_PACK_BUG_ICON_PATH();
83 MCAPI static ::Core::PathBuffer<::std::string>
const& RESOURCE_PACK_ICON_PATH();
85 MCAPI static ::Core::PathBuffer<::std::string>
const& TEXTURES_LIST_PATH();
91 MCAPI
void* $ctor(::gsl::not_null<::std::shared_ptr<::Pack>> pack);