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