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;
16struct ZipPackArgs;
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 ~ZipPackAccessStrategy() /*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: 12
83 virtual ::Core::PathBuffer<::std::string> const& getSubPath() const /*override*/;
84
85 // vIndex: 13
86 virtual bool supportsSignatureVerification() const /*override*/;
87
88 // vIndex: 14
89 virtual ::std::unique_ptr<::PackAccessStrategy> createSubPack(::Core::Path const& subPath) const /*override*/;
90
91 // vIndex: 18
92 virtual void unload() /*override*/;
93
94 // vIndex: 19
95 virtual ::ContentIdentity readContentIdentity() const /*override*/;
96 // NOLINTEND
97
98public:
99 // member functions
100 // NOLINTBEGIN
102 ::std::variant<::Bedrock::NotNullNonOwnerPtr<::IFileAccess>, ::gsl::not_null<::std::shared_ptr<::IFileAccess>>>
103 fileAccess,
104 ::ZipPackArgs&& args
105 );
106
107 MCNAPI ::gsl::not_null<::IFileAccess*> getFileAccess() const;
108 // NOLINTEND
109
110public:
111 // constructor thunks
112 // NOLINTBEGIN
113 MCNAPI void* $ctor(
114 ::std::variant<::Bedrock::NotNullNonOwnerPtr<::IFileAccess>, ::gsl::not_null<::std::shared_ptr<::IFileAccess>>>
115 fileAccess,
116 ::ZipPackArgs&& args
117 );
118 // NOLINTEND
119
120public:
121 // destructor thunk
122 // NOLINTBEGIN
123 MCNAPI void $dtor();
124 // NOLINTEND
125
126public:
127 // virtual function thunks
128 // NOLINTBEGIN
129 MCNAPI uint64 $getPackSize() const;
130
131 MCNAPI ::ResourceLocation const& $getPackLocation() const;
132
133 MCNAPI ::std::string const& $getPackName() const;
134
135 MCNAPI bool $isWritable() const;
136
137 MCNAPI bool $isTrusted() const;
138
139 MCNAPI bool $hasAsset(::Core::Path const& packRelativePath, bool trustedContentOnly, bool caseSensative) const;
140
141 MCNAPI bool $hasFolder(::Core::Path const& packRelativePath) const;
142
143 MCNAPI bool $getAsset(::Core::Path const& packRelativePath, ::std::string& result, bool trustedContentOnly) const;
144
145 MCNAPI void $forEachIn(
146 ::Core::Path const& packRelativePath,
147 ::std::function<void(::Core::Path const&)> callback,
148 bool recurseAnyways
149 ) const;
150
151 MCNAPI ::PackAccessStrategyType $getStrategyType() const;
152
153 MCNAPI ::Core::PathBuffer<::std::string> const& $getSubPath() const;
154
156
157 MCNAPI ::std::unique_ptr<::PackAccessStrategy> $createSubPack(::Core::Path const& subPath) const;
158
159 MCNAPI void $unload();
160
161 MCNAPI ::ContentIdentity $readContentIdentity() const;
162 // NOLINTEND
163
164public:
165 // vftables
166 // NOLINTBEGIN
167 MCNAPI static void** $vftable();
168 // NOLINTEND
169};
Definition ContentIdentity.h:8
Definition Path.h:17
Definition IFileAccess.h:15
Definition PackAccessStrategy.h:20
Definition Path.h:16
Definition ResourceLocation.h:14
Definition ZipPackAccessStrategy.h:20
MCAPI bool $isTrusted() const
MCAPI bool $isWritable() const
MCAPI uint64 $getPackSize() const
MCAPI bool $supportsSignatureVerification() const
static MCAPI void ** $vftable()
MCAPI::std::string const & $getPackName() const
MCAPI ::std::unique_ptr<::PackAccessStrategy > $createSubPack(::Core::Path const &subPath) const
MCAPI void * $ctor(::std::variant<::Bedrock::NotNullNonOwnerPtr<::IFileAccess >, ::gsl::not_null<::std::shared_ptr<::IFileAccess > > > fileAccess, ::ZipPackArgs &&args)
MCAPI ::Core::PathBuffer<::std::string > const & $getSubPath() const
MCAPI void $forEachIn(::Core::Path const &packRelativePath, ::std::function< void(::Core::Path const &)> callback, bool recurseAnyways) const
MCAPI bool $hasFolder(::Core::Path const &packRelativePath) const
MCAPI void $unload()
MCAPI::PackAccessStrategyType $getStrategyType() const
MCAPI ZipPackAccessStrategy(::std::variant<::Bedrock::NotNullNonOwnerPtr<::IFileAccess >, ::gsl::not_null<::std::shared_ptr<::IFileAccess > > > fileAccess, ::ZipPackArgs &&args)
MCAPI bool $hasAsset(::Core::Path const &packRelativePath, bool trustedContentOnly, bool caseSensative) const
MCAPI::ResourceLocation const & $getPackLocation() const
MCAPI::ContentIdentity $readContentIdentity() const
MCAPI bool $getAsset(::Core::Path const &packRelativePath, ::std::string &result, bool trustedContentOnly) const
MCAPI ::gsl::not_null<::IFileAccess * > getFileAccess() const
Definition ZipPackArgs.h:5
Definition Alias.h:14