3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/resources/PackAccessAssetGenerationResult.h"
8#include "mc/resources/PackAccessStrategy.h"
9#include "mc/resources/PackAccessStrategyType.h"
18namespace Core {
class Path; }
21class DirectoryPackWithEncryptionAccessStrategy :
public ::PackAccessStrategy {
38 DirectoryPackWithEncryptionAccessStrategy& operator=(DirectoryPackWithEncryptionAccessStrategy
const&);
39 DirectoryPackWithEncryptionAccessStrategy(DirectoryPackWithEncryptionAccessStrategy
const&);
40 DirectoryPackWithEncryptionAccessStrategy();
45 virtual ~DirectoryPackWithEncryptionAccessStrategy() ;
47 virtual uint64 getPackSize()
const ;
49 virtual ::ResourceLocation
const& getPackLocation()
const ;
51 virtual ::std::string
const& getPackName()
const ;
53 virtual bool isWritable()
const ;
55 virtual bool isTrusted()
const ;
57 virtual bool hasAsset(
::Core::Path const& packRelativePath,
bool trustedContentOnly,
bool caseSensative)
const
60 virtual bool hasFolder(
::Core::Path const& packRelativePath)
const ;
62 virtual bool getAsset(
::Core::Path const& packRelativePath, ::std::string& result,
bool trustedContentOnly)
const
69 virtual ::PackAccessStrategyType getStrategyType()
const ;
71 virtual ::std::unique_ptr<::PackAccessStrategy> createSubPack(
::Core::Path const& subPath)
const ;
73 virtual ::PackAccessAssetGenerationResult generateAssetSet() ;
75 virtual void unload() ;
77 virtual ::ContentIdentity readContentIdentity()
const ;
86 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
100 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const>
const& keyProvider,
Definition ContentIdentity.h:8
MCAPI bool _getUnencryptedAsset(::Core::Path const &packRelativePath, ::std::string &result) const
MCAPI::std::string const & $getPackName() const
MCAPI bool $getAsset(::Core::Path const &packRelativePath, ::std::string &result, bool trustedContentOnly) const
MCAPI::PackAccessAssetGenerationResult $generateAssetSet()
MCAPI uint64 $getPackSize() const
MCAPI bool $hasAsset(::Core::Path const &packRelativePath, bool trustedContentOnly, bool caseSensative) const
static MCAPI void ** $vftable()
MCAPI::ContentIdentity $readContentIdentity() const
MCAPI DirectoryPackWithEncryptionAccessStrategy(::ResourceLocation const &packLocation, ::ResourceLocation const &encryptedContentLocation, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::IFileAccess &fileAccess, ::IPackIOProvider const &io)
MCAPI ::std::unique_ptr<::PackAccessStrategy > $createSubPack(::Core::Path const &subPath) const
MCAPI void $forEachIn(::Core::Path const &packRelativePath, ::std::function< void(::Core::Path const &)> callback, bool) const
MCAPI bool $isWritable() const
MCAPI void * $ctor(::ResourceLocation const &packLocation, ::ResourceLocation const &encryptedContentLocation, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::IFileAccess &fileAccess, ::IPackIOProvider const &io)
MCAPI::ResourceLocation const & $getPackLocation() const
MCAPI::PackAccessStrategyType $getStrategyType() const
MCAPI bool $isTrusted() const
MCAPI bool $hasFolder(::Core::Path const &packRelativePath) const
Definition IContentKeyProvider.h:13
Definition IFileAccess.h:15
Definition IPackIOProvider.h:15
Definition ResourceLocation.h:15