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/world/actor/player/persona/PersonaError.h"
7#include "mc/world/actor/player/persona/PieceSide.h"
8#include "mc/world/actor/player/persona/PieceType.h"
9#include "mc/world/actor/player/persona/ProfileType.h"
10#include "mc/world/actor/player/persona/Rarity.h"
11
12// auto generated forward declare list
13// clang-format off
14class HashedString;
15namespace mce { class Color; }
16namespace mce { class UUID; }
17class UIPropertyBag;
18// clang-format on
19
20namespace persona {
21// functions
22// NOLINTBEGIN
23#ifdef LL_PLAT_C
24MCAPI ::mce::Color colorFromPieceRarity(::persona::Rarity const& rarity);
25
26MCAPI ::persona::PieceType getBothSidedPieceTypeFromSidePieceType(::persona::PieceType pieceType);
27
28MCAPI ::persona::PieceType getOppositeSidePieceType(::persona::PieceType pieceType);
29
30MCAPI ::std::string getPieceRarityBarTexture(::persona::Rarity pieceRarity);
31
32MCAPI ::mce::Color getPieceRarityColor(::UIPropertyBag const& bag, ::persona::Rarity pieceRarity);
33
34MCAPI ::persona::PieceSide getPieceSideFromPieceType(::persona::PieceType type);
35
36MCAPI ::persona::PieceType getPieceTypeFromPieceSide(::persona::PieceSide pieceSide, ::persona::PieceType pieceType);
37
38MCAPI bool isBothSidedPieceType(::persona::PieceType type);
39
40MCAPI bool isPieceTypeEquipableWithClassicSkin(::persona::PieceType const& typeToCheck);
41
42MCAPI bool isSidePieceType(::persona::PieceType type);
43
44MCAPI bool isValidPieceType(::persona::PieceType const& typeToCheck);
45
46MCAPI bool isValidProfileType(::persona::ProfileType const& typeToCheck);
47
48MCAPI ::std::string_view legacystringViewFromProfileType(::persona::ProfileType profileType);
49
50MCAPI ::persona::Rarity pieceRarityFromString(::std::string const& rarityTypeStr);
51#endif
52
53MCAPI ::persona::PieceType pieceTypeFromString(::std::string const& assetTypeStr);
54
55#ifdef LL_PLAT_C
56MCAPI ::persona::ProfileType profileTypeFromString(::std::string const& profileTypeStr);
57
58MCAPI ::std::string const& stringFromPersonaError(::persona::PersonaError const& error);
59
60MCAPI ::std::string stringFromPieceRarity(::persona::Rarity const& rarity);
61
62MCAPI ::std::string stringFromPieceRarityNotLocalized(::persona::Rarity const& rarity);
63#endif
64
65MCAPI ::std::string const& stringFromPieceType(::persona::PieceType assetType, bool isDefaultItem);
66
67MCAPI ::std::string_view stringViewFromProfileType(::persona::ProfileType profileType);
68
69#ifdef LL_PLAT_C
70MCAPI ::std::string ttsStringFromPieceType(::persona::PieceType assetType, bool isDefaultItem);
71
72MCFOLD void verboseLog(::std::string const& logMessage);
73#endif
74// NOLINTEND
75
76// static variables
77// NOLINTBEGIN
78MCAPI ::std::string const& ANIMATED_128X128_NAME();
79
80MCAPI ::std::string const& ANIMATED_128X128_TEXTURE_CONTROLLER_FIRST_PERSON();
81
82MCAPI ::std::string const& ANIMATED_128X128_TEXTURE_CONTROLLER_THIRD_PERSON();
83
84MCAPI ::HashedString const& ANIMATED_128X128_TEXTURE_FRAMES_VARIABLE();
85
86#ifdef LL_PLAT_C
87MCAPI ::std::string const& ANIMATED_32X32_NAME();
88#endif
89
90MCAPI ::std::string const& ANIMATED_32X32_TEXTURE_CONTROLLER_FIRST_PERSON();
91
92MCAPI ::std::string const& ANIMATED_32X32_TEXTURE_CONTROLLER_THIRD_PERSON();
93
94MCAPI ::HashedString const& ANIMATED_32X32_TEXTURE_FRAMES_VARIABLE();
95
96MCAPI ::std::string const& ANIMATED_FACE_CONTROLLER_FIRST_PERSON();
97
98MCAPI ::std::string const& ANIMATED_FACE_CONTROLLER_THIRD_PERSON();
99
100#ifdef LL_PLAT_C
101MCAPI ::std::string const& ANIMATED_FACE_NAME();
102#endif
103
104MCAPI ::HashedString const& ANIMATED_FACE_TEXTURE_FRAMES_VARIABLE();
105
106MCAPI ::mce::UUID const& NONE_PIECE_ID();
107
108MCAPI ::mce::UUID const& NO_PIECE_SELECTED();
109
110#ifdef LL_PLAT_C
111MCAPI uint const& RANDOM_DEFAULT_APPEARANCE_INDEX();
112#endif
113
114MCAPI ::HashedString const& USE_BLINKING_ANIMATION_VARIABLE();
115// NOLINTEND
116
117} // namespace persona
Definition HashedString.h:5
Definition UIPropertyBag.h:5
Definition Color.h:13
Definition UUID.h:7