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