LeviLamina
Loading...
Searching...
No Matches
SkinRepository.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/player/DefaultSkin.h"
7#include "mc/client/player/ISkinRepository.h"
8#include "mc/deps/core/file/PathBuffer.h"
9#include "mc/deps/core/string/BasicStackString.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11#include "mc/platform/ImagePickingCallback.h"
12#include "mc/world/actor/player/persona/ArmSize.h"
13
14// auto generated forward declare list
15// clang-format off
16class ContentIdentity;
18class Pack;
21class SemVersion;
22class SerializedSkin;
23class Skin;
24class SkinHandle;
25class SkinPack;
26class TaskGroup;
27struct SkinPackMeta;
28namespace mce { class UUID; }
29// clang-format on
30
33 public ::std::enable_shared_from_this<::SkinRepository> {
34public:
35 // SkinRepository inner types declare
36 // clang-format off
37 struct LoadListener;
38 // clang-format on
39
40 // SkinRepository inner types define
41 struct LoadListener {
42 public:
43 // member variables
44 // NOLINTBEGIN
47 // NOLINTEND
48
49 public:
50 // prevent constructor by default
51 LoadListener& operator=(LoadListener const&);
54 };
55
56public:
57 // member variables
58 // NOLINTBEGIN
78 // NOLINTEND
79
80public:
81 // prevent constructor by default
82 SkinRepository& operator=(SkinRepository const&);
85
86public:
87 // virtual functions
88 // NOLINTBEGIN
89 // vIndex: 0
90 virtual ~SkinRepository() /*override*/ = default;
91
92 // vIndex: 1
93 virtual void update(::ResourcePackManager&) /*override*/;
94
95 // vIndex: 2
96 virtual void addLoadListener(::std::weak_ptr<bool>, ::std::function<void(::mce::UUID const&)>) /*override*/;
97
98 // vIndex: 3
99 virtual bool importSkinPack(::Pack&, bool) /*override*/;
100
101 // vIndex: 4
102 virtual bool loadCustomSkin(::std::string const&, ::persona::ArmSize::Type) /*override*/;
103
104 // vIndex: 5
105 virtual bool loadSkinPack(::mce::UUID const&, ::std::function<void()>) /*override*/;
106
107 // vIndex: 6
108 virtual void loadSkinPackAsync(::mce::UUID const&, ::SkinPackMeta const&) /*override*/;
109
110 // vIndex: 7
111 virtual void unloadAndDeleteSkinPack(::mce::UUID const&) /*override*/;
112
113 // vIndex: 8
114 virtual void cancelPendingLoads() /*override*/;
115
116 // vIndex: 9
117 virtual ::std::vector<::Pack const*> const getKnownSkinPacks() const /*override*/;
118
119 // vIndex: 10
120 virtual ::std::vector<::Pack const*> const getKnownSkinPacksInPackage() const /*override*/;
121
122 // vIndex: 11
123 virtual ::std::vector<::Pack const*> const getKnownSkinPacksInUserDir() const /*override*/;
124
125 // vIndex: 12
126 virtual ::std::vector<::Pack const*> const getKnownSkinPacksInPremiumDir() const /*override*/;
127
128 // vIndex: 13
129 virtual void forEachPack(::std::function<void(::Pack const&)> const&) const /*override*/;
130
131 // vIndex: 14
132 virtual ::std::vector<::std::unique_ptr<::SkinPack>> const& getLoadedSkinPacks() const /*override*/;
133
134 // vIndex: 15
135 virtual ::SkinPack* getSkinPackById(::mce::UUID const&) const /*override*/;
136
137 // vIndex: 16
138 virtual ::SkinPack* getSkinPackByIdHash(uint64) const /*override*/;
139
140 // vIndex: 17
141 virtual ::SemVersion const& getVersionOfKnownSkinPack(::mce::UUID const&) const /*override*/;
142
143 // vIndex: 18
144 virtual bool isSkinPackKnown(::mce::UUID const&) const /*override*/;
145
146 // vIndex: 19
147 virtual bool isSkinPackTrusted(::mce::UUID const&) const /*override*/;
148
149 // vIndex: 20
150 virtual bool isSkinPackLoaded(::mce::UUID const&) const /*override*/;
151
152 // vIndex: 21
153 virtual bool isKnownSkinPackUnLoaded(::mce::UUID const&) const /*override*/;
154
155 // vIndex: 22
156 virtual bool isSkinPackLoading(::mce::UUID const&) const /*override*/;
157
158 // vIndex: 23
159 virtual bool isSkinPackOwned(::ContentIdentity const&) const /*override*/;
160
161 // vIndex: 24
162 virtual ::Skin const* getSkinBySerializableName(::std::string const&) const /*override*/;
163
164 // vIndex: 25
165 virtual ::Skin const* getSkin(::SkinHandle const&) const /*override*/;
166
167 // vIndex: 27
168 virtual bool canUseSkin(::Skin const*) const /*override*/;
169
170 // vIndex: 26
171 virtual bool canUseSkin(::SkinHandle const&) const /*override*/;
172
173 // vIndex: 28
174 virtual ::Core::PathBuffer<::Core::BasicStackString<char, 1024>>
175 storeCustomSkin(::ResourceLocation const&) /*override*/;
176
177 // vIndex: 31
178 virtual ::SkinHandle addCustomSkin(::SkinHandle const&) /*override*/;
179
180 // vIndex: 30
181 virtual ::SkinHandle addCustomSkin(::DefaultSkin const, ::ResourceLocation const&) /*override*/;
182
183 // vIndex: 29
184 virtual ::SkinHandle addCustomSkin(::SerializedSkin const&, ::ResourceLocation const&) /*override*/;
185
186 // vIndex: 32
187 virtual bool storeSkin(::ResourceLocation const&, ::ResourceLocation const&) /*override*/;
188
189 // vIndex: 33
190 virtual bool canPickSkin() const /*override*/;
191
192 // vIndex: 34
193 virtual void pickSkin(::std::function<void(bool, ::std::string)>) /*override*/;
194
195 // vIndex: 35
196 virtual void reloadSkinPackLocText() /*override*/;
197
198 // vIndex: 36
199 virtual ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> getSkinKeyProvider() const /*override*/;
200
201 // vIndex: 37
202 virtual ::Skin const* getDefaultSkinBySerializableName(::std::string const&) const /*override*/;
203
204 // vIndex: 38
205 virtual ::std::string const _getDefaultSkinSerializableName(::std::string const&) const /*override*/;
206
207 // vIndex: 39
208 virtual ::std::string _getCustomSkinSerializableName(::DefaultSkin) const /*override*/;
209
210 // vIndex: 40
211 virtual bool isValidSkin(::ResourceLocation const&) const /*override*/;
212
213 // vIndex: 41
214 virtual void loadSkin(::ResourceLocation const&) /*override*/;
215
216 // vIndex: 42
217 virtual void unloadSkin(::ResourceLocation const&) /*override*/;
218
219 // vIndex: 43
220 virtual bool loadCustomSkinTexture(::ResourceLocation const&) /*override*/;
221
222 // vIndex: 44
223 virtual void beginAsyncInit(::TaskGroup&) /*override*/;
224
225 // vIndex: 45
226 virtual bool isInitialized() const /*override*/;
227
228 // vIndex: 46
229 virtual uint64 getLoadedSkinPackCount() /*override*/;
230
231 // vIndex: 47
232 virtual uint64 getLoadingSkinPackCount() /*override*/;
233
234 // vIndex: 48
235 virtual void unloadUnusedCustomSkinTextures(::std::vector<::SkinHandle> const&) /*override*/;
236
237 // vIndex: 1
238 virtual void onImagePickingSuccess(::std::string const&) /*override*/;
239
240 // vIndex: 2
241 virtual void onImagePickingCanceled() /*override*/;
242 // NOLINTEND
243
244public:
245 // virtual function thunks
246 // NOLINTBEGIN
247
248 // NOLINTEND
249};
Definition ContentIdentity.h:8
Definition IContentKeyProvider.h:13
Definition ISkinRepository.h:30
Definition ImagePickingCallback.h:5
Definition Pack.h:28
Definition ResourceLocation.h:14
Definition ResourcePackManager.h:24
Definition SemVersion.h:16
Definition SerializedSkin.h:16
Definition SkinHandle.h:5
Definition SkinPack.h:5
Definition SkinRepository.h:33
Definition Skin.h:5
Definition TaskGroup.h:39
Definition UUID.h:7
STL namespace.
Definition SkinPackMeta.h:5
Definition SkinRepository.h:41
Definition Alias.h:14