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