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 setPackIdVersion(::PackIdVersion const& packIdVersion);
102
103 MCNAPI void setPieceId(::mce::UUID const& pieceId);
104
105 MCNAPI void setPieceNameAsLocKey(::std::string const& pieceName);
106
107 MCNAPI ~PersonaPiece();
108#endif
109 // NOLINTEND
110
111public:
112 // static functions
113 // NOLINTBEGIN
114#ifdef LL_PLAT_C
115 MCNAPI static ::PersonaPiece const& getInvalidPiece();
116#endif
117 // NOLINTEND
118
119public:
120 // constructor thunks
121 // NOLINTBEGIN
122#ifdef LL_PLAT_C
123 MCNAPI void* $ctor();
124
125 MCNAPI void* $ctor(::PersonaPiece&&);
126
127 MCNAPI void* $ctor(
128 ::std::string const& pieceId,
129 ::PackIdVersion const& packIdVersion,
130 ::SharedTypes::persona::PieceType pieceTypeId,
131 ::std::weak_ptr<::Pack const> sourcePack,
132 bool platformLocked,
133 bool titleLocked,
134 bool allowsTintOverride
135 );
136#endif
137 // NOLINTEND
138
139public:
140 // destructor thunk
141 // NOLINTBEGIN
142#ifdef LL_PLAT_C
143 MCNAPI void $dtor();
144#endif
145 // NOLINTEND
146};
Definition Value.h:16
Definition Pack.h:27
Definition TintMapColor.h:8
Definition UUID.h:7
Definition PackIdVersion.h:10
Definition PersonaPiece.h:26
Definition Alias.h:14