LeviLamina
Loading...
Searching...
No Matches
PersonaPiece.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/persona/PieceType.h"
7
8// auto generated forward declare list
9// clang-format off
10class Pack;
11class TintMapColor;
12struct PackIdVersion;
13namespace Json { class Value; }
14namespace SharedTypes::v1_26_40::PersonaPieceMetaDef { struct PersonaPieceMeta; }
15namespace mce { class UUID; }
16// clang-format on
17
18class PersonaPiece {
19public:
20 // PersonaPiece inner types declare
21 // clang-format off
22 struct FilePaths;
23 // clang-format on
24
25 // PersonaPiece inner types define
26 struct FilePaths {};
27
28public:
29 // member variables
30 // NOLINTBEGIN
51 // NOLINTEND
52
53#ifdef LL_PLAT_S
54public:
55 // prevent constructor by default
56 PersonaPiece& operator=(PersonaPiece const&);
57 PersonaPiece(PersonaPiece const&);
58 PersonaPiece();
59
60#else // LL_PLAT_C
61public:
62 // prevent constructor by default
63 PersonaPiece& operator=(PersonaPiece const&);
64 PersonaPiece(PersonaPiece const&);
65
66#endif
67public:
68 // member functions
69 // NOLINTBEGIN
70#ifdef LL_PLAT_C
71 MCNAPI PersonaPiece();
72
73 MCNAPI PersonaPiece(::PersonaPiece&&);
74
75 MCNAPI PersonaPiece(
76 ::std::string const& pieceId,
77 ::PackIdVersion const& packIdVersion,
78 ::SharedTypes::persona::PieceType pieceTypeId,
79 ::std::weak_ptr<::Pack const> sourcePack,
80 bool platformLocked,
81 bool titleLocked,
82 bool allowsTintOverride
83 );
84
85 MCNAPI ::std::string getPieceName() const;
86
87 MCNAPI ::std::string getPieceTypeAsString() const;
88
89 MCNAPI ::TintMapColor getTintBaseColor() const;
90
91 MCNAPI bool getTintMapColor(::TintMapColor& tintColor) const;
92
93 MCNAPI void initLocalizationDictionary();
94
95 MCNAPI bool isDefaultPiece() const;
96
97 MCNAPI bool isValid() const;
98
99 MCNAPI bool loadGeometryFileJson(::Json::Value& outJson) const;
100
101 MCNAPI void setPieceId(::mce::UUID const& pieceId);
102
103 MCNAPI void setPieceNameAsLocKey(::std::string const& pieceName);
104
105 MCNAPI ~PersonaPiece();
106#endif
107 // NOLINTEND
108
109public:
110 // constructor thunks
111 // NOLINTBEGIN
112#ifdef LL_PLAT_C
113 MCNAPI void* $ctor();
114
115 MCNAPI void* $ctor(::PersonaPiece&&);
116
117 MCNAPI void* $ctor(
118 ::std::string const& pieceId,
119 ::PackIdVersion const& packIdVersion,
120 ::SharedTypes::persona::PieceType pieceTypeId,
121 ::std::weak_ptr<::Pack const> sourcePack,
122 bool platformLocked,
123 bool titleLocked,
124 bool allowsTintOverride
125 );
126#endif
127 // NOLINTEND
128
129public:
130 // destructor thunk
131 // NOLINTBEGIN
132#ifdef LL_PLAT_C
133 MCNAPI void $dtor();
134#endif
135 // NOLINTEND
136};
Definition Value.h:16
Definition Pack.h:28
Definition TintMapColor.h:8
Definition UUID.h:8
Definition PackIdVersion.h:10
Definition PersonaPiece.h:26
Definition Alias.h:14