Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
persona.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/deps/shared_types/persona/PieceType.h"
8#include "mc/world/actor/player/persona/ProfileType.h"
9#include "mc/world/actor/player/persona/Rarity.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace Json { class Value; }
14namespace mce { class Color; }
15namespace mce { class UUID; }
16class UIPropertyBag;
17namespace persona { struct DefaultAppearance; }
18namespace persona { struct PackEvictionPass; }
19namespace persona { struct PackEvictionState; }
20namespace persona { struct PackEvictionTarget; }
21namespace persona { struct PackEvictionTelemetrySnapshot; }
22// clang-format on
23
24namespace persona {
25// functions
26// NOLINTBEGIN
27#ifdef LL_PLAT_C
28MCNAPI void ParseProfileHashes(
29 ::std::unordered_map<::persona::ProfileType, ::std::string>& updatedProfileHashes,
30 ::Json::Value const& response,
31 ::std::string const& objectName
32);
33
34MCNAPI ::mce::Color getPieceRarityColor(::UIPropertyBag const& bag, ::persona::Rarity pieceRarity);
35
36MCNAPI ::persona::ProfileType parseProfileTypeFromHashKey(::std::string const& key);
37
38MCNAPI ::persona::Rarity pieceRarityFromString(::std::string const& rarityTypeStr);
39#endif
40
41MCNAPI ::SharedTypes::persona::PieceType pieceTypeFromString(::std::string const& assetTypeStr);
42
43#ifdef LL_PLAT_C
44MCNAPI ::persona::PackEvictionTelemetrySnapshot
45recordEvictionPass(::persona::PackEvictionPass const& pass, ::persona::PackEvictionState& state);
46
47MCNAPI ::std::string stringFromPieceRarity(::persona::Rarity const& rarity);
48
49MCNAPI ::std::string stringFromPieceRarityNotLocalized(::persona::Rarity const& rarity);
50
51MCNAPI ::std::string const& stringFromPieceType(::SharedTypes::persona::PieceType assetType, bool isDefaultItem);
52
53MCNAPI bool tryDeleteCachedPack(::persona::PackEvictionTarget const& target);
54
55MCNAPI ::std::string ttsStringFromPieceType(::SharedTypes::persona::PieceType assetType, bool isDefaultItem);
56#endif
57// NOLINTEND
58
59// static variables
60// NOLINTBEGIN
61#ifdef LL_PLAT_C
62MCNAPI ::std::string const& ANIMATED_128X128_NAME();
63
64MCNAPI ::std::string const& ANIMATED_128X128_TEXTURE_CONTROLLER_FIRST_PERSON();
65
66MCNAPI ::std::string const& ANIMATED_128X128_TEXTURE_CONTROLLER_THIRD_PERSON();
67
68MCNAPI ::HashedString const& ANIMATED_128X128_TEXTURE_FRAMES_VARIABLE();
69
70MCNAPI ::std::string const& ANIMATED_32X32_NAME();
71
72MCNAPI ::std::string const& ANIMATED_32X32_TEXTURE_CONTROLLER_FIRST_PERSON();
73
74MCNAPI ::std::string const& ANIMATED_32X32_TEXTURE_CONTROLLER_THIRD_PERSON();
75
76MCNAPI ::HashedString const& ANIMATED_32X32_TEXTURE_FRAMES_VARIABLE();
77
78MCNAPI ::std::string const& ANIMATED_FACE_CONTROLLER_FIRST_PERSON();
79
80MCNAPI ::std::string const& ANIMATED_FACE_CONTROLLER_THIRD_PERSON();
81
82MCNAPI ::std::string const& ANIMATED_FACE_NAME();
83
84MCNAPI ::HashedString const& ANIMATED_FACE_TEXTURE_FRAMES_VARIABLE();
85
86MCNAPI ::std::string const& DOWNLOAD_IMPORT_CANCELLED();
87
88MCNAPI ::std::string const& DOWNLOAD_IMPORT_FAILED();
89
90MCNAPI ::persona::DefaultAppearance const& INVALID_DEFAULT_APPEARANCE();
91
92MCNAPI ::std::string const& INVALID_PERSONA();
93
94MCNAPI ::std::string const& ITEM_SELECTION();
95
96MCNAPI ::std::string const& LOADING_APPEARANCE_TIME_OUT();
97
98MCNAPI ::std::string const& MINECRAFT_CREATOR_STR();
99
100MCNAPI ::std::string const& MISSING_DOWNLOADER();
101
102MCNAPI ::mce::UUID const& NONE_PIECE_ID();
103
104MCNAPI ::std::string const& NO_ERROR_OCCURRED();
105
106MCNAPI ::std::string const& PERSONA_LOD_CONTROLLER_THIRD_PERSON();
107
108MCNAPI ::std::string const& PIECE_SIDE_BOTH_STR();
109
110MCNAPI ::std::string const& PIECE_SIDE_LEFT_STR();
111
112MCNAPI ::std::string const& PIECE_SIDE_RIGHT_STR();
113#endif
114
115MCNAPI ::std::string const&& PIECE_TYPE_ARMS_STR();
116
117MCNAPI ::std::string const&& PIECE_TYPE_BACK_STR();
118
119MCNAPI ::std::string const&& PIECE_TYPE_BODY_STR();
120
121MCNAPI ::std::string const&& PIECE_TYPE_BOTTOM_STR();
122
123MCNAPI ::std::string const&& PIECE_TYPE_CAPES_STR();
124
125MCNAPI ::std::string const&& PIECE_TYPE_CLASSIC_SKIN_STR();
126
127MCNAPI ::std::string const&& PIECE_TYPE_COCO_STR();
128
129MCNAPI ::std::string const&& PIECE_TYPE_DRESS_STR();
130
131MCNAPI ::std::string const&& PIECE_TYPE_EMOTE_STR();
132
133MCNAPI ::std::string const&& PIECE_TYPE_EYES_STR();
134
135MCNAPI ::std::string const&& PIECE_TYPE_FACE_ACCESSORY_STR();
136
137MCNAPI ::std::string const&& PIECE_TYPE_FACIAL_HAIR_STR();
138
139MCNAPI ::std::string const&& PIECE_TYPE_FEET_STR();
140
141MCNAPI ::std::string const&& PIECE_TYPE_HAIR_STR();
142
143MCNAPI ::std::string const&& PIECE_TYPE_HANDS_STR();
144
145MCNAPI ::std::string const&& PIECE_TYPE_HEAD_STR();
146
147MCNAPI ::std::string const&& PIECE_TYPE_HIGH_PANTS_STR();
148
149MCNAPI ::std::string const&& PIECE_TYPE_HOOD_STR();
150
151MCNAPI ::std::string const&& PIECE_TYPE_LEFT_ARM();
152
153MCNAPI ::std::string const&& PIECE_TYPE_LEFT_LEG();
154
155MCNAPI ::std::string const&& PIECE_TYPE_LEGS_STR();
156
157MCNAPI ::std::string const&& PIECE_TYPE_MOUTH_STR();
158
159MCNAPI ::std::string const&& PIECE_TYPE_OUTERWEAR_STR();
160
161MCNAPI ::std::string const&& PIECE_TYPE_RIGHT_ARM();
162
163MCNAPI ::std::string const&& PIECE_TYPE_RIGHT_LEG();
164
165MCNAPI ::std::string const&& PIECE_TYPE_SKELETON_STR();
166
167MCNAPI ::std::string const&& PIECE_TYPE_SKIN_STR();
168
169MCNAPI ::std::string const&& PIECE_TYPE_TOP_STR();
170
171MCNAPI ::std::string const&& PIECE_TYPE_UNKNOWN_DEFAULT_ITEM_STR();
172
173MCNAPI ::std::string const&& PIECE_TYPE_UNKNOWN_STR();
174
175MCNAPI ::std::string const&& PIECE_TYPE_UNSUPPORTED_STR();
176
177#ifdef LL_PLAT_C
178MCNAPI ::std::string const& RARITY_NONE();
179
180MCNAPI ::std::unordered_map<::persona::Rarity, ::std::string> const& RarityToStringMap();
181#endif
182
183MCAPI ::std::unordered_map<::std::string, ::SharedTypes::persona::PieceType> const& StringToPieceTypeMap();
184
185#ifdef LL_PLAT_C
186MCNAPI ::std::unordered_map<::HashedString, ::persona::Rarity> const& StringToRarityMap();
187
188MCNAPI ::std::string_view const& UNKNOWN_TYPE_STR();
189
190MCNAPI ::HashedString const& USE_BLINKING_ANIMATION_VARIABLE();
191#endif
192// NOLINTEND
193
194} // namespace persona
Definition Value.h:16
Definition UIPropertyBag.h:5
Definition Color.h:13
Definition UUID.h:8
Definition DefaultAppearance.h:7
Definition PackEvictionPass.h:7
Definition PackEvictionState.h:7
Definition PackEvictionTarget.h:7
Definition PackEvictionTelemetrySnapshot.h:7