LeviLamina
Loading...
Searching...
No Matches
ZippedEncryptedFilesAccessStrategy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/resources/EncryptedFileAccessStrategy.h"
9#include "mc/resources/PackAccessStrategyType.h"
10
11// auto generated forward declare list
12// clang-format off
13class ContentIdentity;
17namespace Bedrock::Resources { class PreloadedPathHandle; }
18namespace Core { class Path; }
19// clang-format on
20
21class ZippedEncryptedFilesAccessStrategy : public ::EncryptedFileAccessStrategy {
22public:
23 // member variables
24 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ZippedEncryptedFilesAccessStrategy& operator=(ZippedEncryptedFilesAccessStrategy const&);
32 ZippedEncryptedFilesAccessStrategy(ZippedEncryptedFilesAccessStrategy const&);
33 ZippedEncryptedFilesAccessStrategy();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ::ResourceLocation const& getPackLocation() const /*override*/;
39
40 virtual bool hasFolder(::Core::Path const& packRelativePath) const /*override*/;
41
42 virtual void forEachIn(
43 ::Core::Path const& packRelativePath,
44 ::std::function<void(::Core::Path const&)> callback,
45 bool recurseAnyways
46 ) const /*override*/;
47
48 virtual ::PackAccessStrategyType getStrategyType() const /*override*/;
49
50 virtual ::Core::PathBuffer<::std::string> const& getSubPath() const /*override*/;
51
52 virtual bool supportsSignatureVerification() const /*override*/;
53
54 virtual ::std::unique_ptr<::PackAccessStrategy> createSubPack(::Core::Path const& subPath) const /*override*/;
55
56 virtual ::std::string _getContentsFile() /*override*/;
57
58 virtual ::std::string _getEncryptedAssetStream(::Core::Path const& packRelativePath) const /*override*/;
59
60 virtual ::std::vector<::Bedrock::Resources::PreloadedPathHandle>
61 _preloadSubFolders(::Core::Path const& packRelativePath) const /*override*/;
62
63 virtual ~ZippedEncryptedFilesAccessStrategy() /*override*/ = default;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
70 ::ResourceLocation const& archiveLocation,
71 ::ContentIdentity const& contentIdentity,
72 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
73 ::Core::Path const& subPath,
74 ::std::unique_ptr<::PackAccessStrategy> zipSubPack
75 );
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCNAPI void* $ctor(
82 ::ResourceLocation const& archiveLocation,
83 ::ContentIdentity const& contentIdentity,
84 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
85 ::Core::Path const& subPath,
86 ::std::unique_ptr<::PackAccessStrategy> zipSubPack
87 );
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93 MCNAPI ::ResourceLocation const& $getPackLocation() const;
94
95 MCNAPI bool $hasFolder(::Core::Path const& packRelativePath) const;
96
97 MCNAPI void $forEachIn(
98 ::Core::Path const& packRelativePath,
99 ::std::function<void(::Core::Path const&)> callback,
100 bool recurseAnyways
101 ) const;
102
103 MCNAPI ::PackAccessStrategyType $getStrategyType() const;
104
105 MCNAPI ::Core::PathBuffer<::std::string> const& $getSubPath() const;
106
108
109 MCNAPI ::std::unique_ptr<::PackAccessStrategy> $createSubPack(::Core::Path const& subPath) const;
110
111 MCNAPI ::std::string $_getContentsFile();
112
113 MCNAPI ::std::string $_getEncryptedAssetStream(::Core::Path const& packRelativePath) const;
114
115 MCNAPI ::std::vector<::Bedrock::Resources::PreloadedPathHandle>
116 $_preloadSubFolders(::Core::Path const& packRelativePath) const;
117
118
119 // NOLINTEND
120
121public:
122 // vftables
123 // NOLINTBEGIN
124 MCNAPI static void** $vftable();
125 // NOLINTEND
126};
Definition PreloadedPathHandle.h:15
Definition ContentIdentity.h:8
Definition Path.h:10
Definition IContentKeyProvider.h:13
Definition PackAccessStrategy.h:21
Definition ResourceLocation.h:15
MCAPI ZippedEncryptedFilesAccessStrategy(::ResourceLocation const &archiveLocation, ::ContentIdentity const &contentIdentity, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::Core::Path const &subPath, ::std::unique_ptr<::PackAccessStrategy > zipSubPack)
MCAPI::ResourceLocation const & $getPackLocation() const
MCAPI void $forEachIn(::Core::Path const &packRelativePath, ::std::function< void(::Core::Path const &)> callback, bool recurseAnyways) const
MCAPI::PackAccessStrategyType $getStrategyType() const
MCAPI bool $hasFolder(::Core::Path const &packRelativePath) const
static MCAPI void ** $vftable()
MCAPI ::std::vector<::Bedrock::Resources::PreloadedPathHandle > $_preloadSubFolders(::Core::Path const &packRelativePath) const
MCAPI bool $supportsSignatureVerification() const
MCAPI ::std::unique_ptr<::PackAccessStrategy > $createSubPack(::Core::Path const &subPath) const
MCAPI::std::string $_getEncryptedAssetStream(::Core::Path const &packRelativePath) const
MCAPI::std::string $_getContentsFile()
MCAPI void * $ctor(::ResourceLocation const &archiveLocation, ::ContentIdentity const &contentIdentity, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::Core::Path const &subPath, ::std::unique_ptr<::PackAccessStrategy > zipSubPack)
MCAPI ::Core::PathBuffer<::std::string > const & $getSubPath() const
Definition Alias.h:14