LeviLamina
Loading...
Searching...
No Matches
ISkinRepository.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/deps/core/file/PathBuffer.h"
8#include "mc/deps/core/string/BasicStackString.h"
9#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11#include "mc/world/actor/player/persona/ArmSize.h"
12
13// auto generated forward declare list
14// clang-format off
15class ContentIdentity;
17class Pack;
20class SemVersion;
21class SerializedSkin;
22class Skin;
23class SkinHandle;
24class SkinPack;
25class TaskGroup;
26struct SkinPackMeta;
27namespace mce { class UUID; }
28// clang-format on
29
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 0
35 virtual ~ISkinRepository() /*override*/ = default;
36
37 // vIndex: 1
38 virtual void update(::ResourcePackManager&) = 0;
39
40 // vIndex: 2
41 virtual void addLoadListener(::std::weak_ptr<bool>, ::std::function<void(::mce::UUID const&)>) = 0;
42
43 // vIndex: 3
44 virtual bool importSkinPack(::Pack&, bool) = 0;
45
46 // vIndex: 4
47 virtual bool loadCustomSkin(::std::string const&, ::persona::ArmSize::Type) = 0;
48
49 // vIndex: 5
50 virtual bool loadSkinPack(::mce::UUID const&, ::std::function<void()>) = 0;
51
52 // vIndex: 6
53 virtual void loadSkinPackAsync(::mce::UUID const&, ::SkinPackMeta const&) = 0;
54
55 // vIndex: 7
56 virtual void unloadAndDeleteSkinPack(::mce::UUID const&) = 0;
57
58 // vIndex: 8
59 virtual void cancelPendingLoads() = 0;
60
61 // vIndex: 9
62 virtual ::std::vector<::Pack const*> const getKnownSkinPacks() const = 0;
63
64 // vIndex: 10
65 virtual ::std::vector<::Pack const*> const getKnownSkinPacksInPackage() const = 0;
66
67 // vIndex: 11
68 virtual ::std::vector<::Pack const*> const getKnownSkinPacksInUserDir() const = 0;
69
70 // vIndex: 12
71 virtual ::std::vector<::Pack const*> const getKnownSkinPacksInPremiumDir() const = 0;
72
73 // vIndex: 13
74 virtual void forEachPack(::std::function<void(::Pack const&)> const&) const = 0;
75
76 // vIndex: 14
77 virtual ::std::vector<::std::unique_ptr<::SkinPack>> const& getLoadedSkinPacks() const = 0;
78
79 // vIndex: 15
80 virtual ::SkinPack* getSkinPackById(::mce::UUID const&) const = 0;
81
82 // vIndex: 16
83 virtual ::SkinPack* getSkinPackByIdHash(uint64) const = 0;
84
85 // vIndex: 17
86 virtual ::SemVersion const& getVersionOfKnownSkinPack(::mce::UUID const&) const = 0;
87
88 // vIndex: 18
89 virtual bool isSkinPackKnown(::mce::UUID const&) const = 0;
90
91 // vIndex: 19
92 virtual bool isSkinPackTrusted(::mce::UUID const&) const = 0;
93
94 // vIndex: 20
95 virtual bool isSkinPackLoaded(::mce::UUID const&) const = 0;
96
97 // vIndex: 21
98 virtual bool isKnownSkinPackUnLoaded(::mce::UUID const&) const = 0;
99
100 // vIndex: 22
101 virtual bool isSkinPackLoading(::mce::UUID const&) const = 0;
102
103 // vIndex: 23
104 virtual bool isSkinPackOwned(::ContentIdentity const&) const = 0;
105
106 // vIndex: 24
107 virtual ::Skin const* getSkinBySerializableName(::std::string const&) const = 0;
108
109 // vIndex: 25
110 virtual ::Skin const* getSkin(::SkinHandle const&) const = 0;
111
112 // vIndex: 27
113 virtual bool canUseSkin(::Skin const*) const = 0;
114
115 // vIndex: 26
116 virtual bool canUseSkin(::SkinHandle const&) const = 0;
117
118 // vIndex: 28
119 virtual ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> storeCustomSkin(::ResourceLocation const&) = 0;
120
121 // vIndex: 31
122 virtual ::SkinHandle addCustomSkin(::SkinHandle const&) = 0;
123
124 // vIndex: 30
125 virtual ::SkinHandle addCustomSkin(::DefaultSkin const, ::ResourceLocation const&) = 0;
126
127 // vIndex: 29
128 virtual ::SkinHandle addCustomSkin(::SerializedSkin const&, ::ResourceLocation const&) = 0;
129
130 // vIndex: 32
131 virtual bool storeSkin(::ResourceLocation const&, ::ResourceLocation const&) = 0;
132
133 // vIndex: 33
134 virtual bool canPickSkin() const = 0;
135
136 // vIndex: 34
137 virtual void pickSkin(::std::function<void(bool, ::std::string)>) = 0;
138
139 // vIndex: 35
140 virtual void reloadSkinPackLocText() = 0;
141
142 // vIndex: 36
143 virtual ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> getSkinKeyProvider() const = 0;
144
145 // vIndex: 37
146 virtual ::Skin const* getDefaultSkinBySerializableName(::std::string const&) const = 0;
147
148 // vIndex: 38
149 virtual ::std::string const _getDefaultSkinSerializableName(::std::string const&) const = 0;
150
151 // vIndex: 39
152 virtual ::std::string _getCustomSkinSerializableName(::DefaultSkin) const = 0;
153
154 // vIndex: 40
155 virtual bool isValidSkin(::ResourceLocation const&) const = 0;
156
157 // vIndex: 41
158 virtual void loadSkin(::ResourceLocation const&) = 0;
159
160 // vIndex: 42
161 virtual void unloadSkin(::ResourceLocation const&) = 0;
162
163 // vIndex: 43
164 virtual bool loadCustomSkinTexture(::ResourceLocation const&) = 0;
165
166 // vIndex: 44
167 virtual void beginAsyncInit(::TaskGroup&) = 0;
168
169 // vIndex: 45
170 virtual bool isInitialized() const = 0;
171
172 // vIndex: 46
173 virtual uint64 getLoadedSkinPackCount() = 0;
174
175 // vIndex: 47
176 virtual uint64 getLoadingSkinPackCount() = 0;
177
178 // vIndex: 48
179 virtual void unloadUnusedCustomSkinTextures(::std::vector<::SkinHandle> const&) = 0;
180 // NOLINTEND
181
182public:
183 // virtual function thunks
184 // NOLINTBEGIN
185
186 // NOLINTEND
187};
Definition EnableNonOwnerReferences.h:7
Definition ContentIdentity.h:8
Definition IContentKeyProvider.h:13
Definition ISkinRepository.h:30
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 Skin.h:5
Definition TaskGroup.h:115
Definition UUID.h:7
Definition SkinPackMeta.h:5