LeviLamina
Loading...
Searching...
No Matches
DirectoryPackWithEncryptionAccessStrategy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
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"
10
11// auto generated forward declare list
12// clang-format off
13class ContentIdentity;
15class IFileAccess;
17namespace Core { class Path; }
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 0
44 virtual ~DirectoryPackWithEncryptionAccessStrategy() /*override*/;
45
46 // vIndex: 1
47 virtual uint64 getPackSize() const /*override*/;
48
49 // vIndex: 2
50 virtual ::ResourceLocation const& getPackLocation() const /*override*/;
51
52 // vIndex: 3
53 virtual ::std::string const& getPackName() const /*override*/;
54
55 // vIndex: 4
56 virtual bool isWritable() const /*override*/;
57
58 // vIndex: 5
59 virtual bool isTrusted() const /*override*/;
60
61 // vIndex: 6
62 virtual bool hasAsset(::Core::Path const& packRelativePath, bool trustedContentOnly, bool caseSensative) const
63 /*override*/;
64
65 // vIndex: 7
66 virtual bool hasFolder(::Core::Path const& packRelativePath) const /*override*/;
67
68 // vIndex: 8
69 virtual bool getAsset(::Core::Path const& packRelativePath, ::std::string& result, bool trustedContentOnly) const
70 /*override*/;
71
72 // vIndex: 9
73 virtual void forEachIn(
74 ::Core::Path const& packRelativePath,
75 ::std::function<void(::Core::Path const&)> callback,
76 bool recurseAnyways
77 ) const /*override*/;
78
79 // vIndex: 11
80 virtual ::PackAccessStrategyType getStrategyType() const /*override*/;
81
82 // vIndex: 14
83 virtual ::std::unique_ptr<::PackAccessStrategy> createSubPack(::Core::Path const& subPath) const /*override*/;
84
85 // vIndex: 15
86 virtual ::PackAccessAssetGenerationResult generateAssetSet() /*override*/;
87
88 // vIndex: 18
89 virtual void unload() /*override*/;
90
91 // vIndex: 19
92 virtual ::ContentIdentity readContentIdentity() const /*override*/;
93 // NOLINTEND
94
95public:
96 // member functions
97 // NOLINTBEGIN
99 ::ResourceLocation const& packLocation,
100 ::ResourceLocation const& encryptedContentLocation,
101 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
102 ::IFileAccess& fileAccess
103 );
104
105 MCNAPI bool _getUnencryptedAsset(::Core::Path const& packRelativePath, ::std::string& result) const;
106 // NOLINTEND
107
108public:
109 // constructor thunks
110 // NOLINTBEGIN
111 MCNAPI void* $ctor(
112 ::ResourceLocation const& packLocation,
113 ::ResourceLocation const& encryptedContentLocation,
114 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
115 ::IFileAccess& fileAccess
116 );
117 // NOLINTEND
118
119public:
120 // destructor thunk
121 // NOLINTBEGIN
122 MCNAPI void $dtor();
123 // NOLINTEND
124
125public:
126 // virtual function thunks
127 // NOLINTBEGIN
128 MCNAPI uint64 $getPackSize() const;
129
130 MCNAPI ::ResourceLocation const& $getPackLocation() const;
131
132 MCNAPI ::std::string const& $getPackName() const;
133
134 MCNAPI bool $isWritable() const;
135
136 MCNAPI bool $isTrusted() const;
137
138 MCNAPI bool $hasAsset(::Core::Path const& packRelativePath, bool trustedContentOnly, bool caseSensative) const;
139
140 MCNAPI bool $hasFolder(::Core::Path const& packRelativePath) const;
141
142 MCNAPI bool $getAsset(::Core::Path const& packRelativePath, ::std::string& result, bool trustedContentOnly) const;
143
144 MCNAPI void $forEachIn(
145 ::Core::Path const& packRelativePath,
146 ::std::function<void(::Core::Path const&)> callback,
147 bool recurseAnyways
148 ) const;
149
150 MCNAPI ::PackAccessStrategyType $getStrategyType() const;
151
152 MCNAPI ::std::unique_ptr<::PackAccessStrategy> $createSubPack(::Core::Path const& subPath) const;
153
154 MCNAPI ::PackAccessAssetGenerationResult $generateAssetSet();
155
156 MCNAPI void $unload();
157
158 MCNAPI ::ContentIdentity $readContentIdentity() const;
159 // NOLINTEND
160
161public:
162 // vftables
163 // NOLINTBEGIN
164 MCNAPI static void** $vftable();
165 // NOLINTEND
166};
Definition ContentIdentity.h:8
Definition Path.h:17
Definition DirectoryPackWithEncryptionAccessStrategy.h:20
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 void $forEachIn(::Core::Path const &packRelativePath, ::std::function< void(::Core::Path const &)> callback, bool recurseAnyways) const
MCAPI bool $hasAsset(::Core::Path const &packRelativePath, bool trustedContentOnly, bool caseSensative) const
MCAPI::ContentIdentity $readContentIdentity() const
MCAPI void * $ctor(::ResourceLocation const &packLocation, ::ResourceLocation const &encryptedContentLocation, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::IFileAccess &fileAccess)
MCAPI ::std::unique_ptr<::PackAccessStrategy > $createSubPack(::Core::Path const &subPath) const
MCAPI DirectoryPackWithEncryptionAccessStrategy(::ResourceLocation const &packLocation, ::ResourceLocation const &encryptedContentLocation, ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const > const &keyProvider, ::IFileAccess &fileAccess)
MCAPI::ResourceLocation const & $getPackLocation() const
MCAPI::PackAccessStrategyType $getStrategyType() const
MCAPI bool $hasFolder(::Core::Path const &packRelativePath) const
Definition IContentKeyProvider.h:13
Definition IFileAccess.h:15
Definition PackAccessStrategy.h:20
Definition Path.h:16
Definition ResourceLocation.h:14
Definition Alias.h:14