LeviLamina
Loading...
Searching...
No Matches
FacetRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/interface/FacetRegistryLocation.h"
7#include "mc/client/gui/oreui/interface/IFacetRegistry.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace OreUI { class FacetBinder; }
13namespace OreUI { class IFacet; }
14// clang-format on
15
16namespace OreUI {
17
18class FacetRegistry : public ::OreUI::IFacetRegistry {
19public:
20 // FacetRegistry inner types declare
21 // clang-format off
22 struct FacetPrototype;
23 struct FacetEntry;
24 // clang-format on
25
26 // FacetRegistry inner types define
27 struct FacetPrototype {
28 public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 32, ::std::string const> name;
32 ::ll::TypedStorage<8, 64, ::std::function<::std::unique_ptr<::OreUI::IFacet>()> const> constructor;
33 // NOLINTEND
34
35 public:
36 // prevent constructor by default
37 FacetPrototype& operator=(FacetPrototype const&);
38 FacetPrototype();
39
40 public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI FacetPrototype(::OreUI::FacetRegistry::FacetPrototype&&);
44
45 MCAPI FacetPrototype(::OreUI::FacetRegistry::FacetPrototype const&);
46
47 MCAPI ~FacetPrototype();
48 // NOLINTEND
49
50 public:
51 // constructor thunks
52 // NOLINTBEGIN
53 MCFOLD void* $ctor(::OreUI::FacetRegistry::FacetPrototype&&);
54
55 MCFOLD void* $ctor(::OreUI::FacetRegistry::FacetPrototype const&);
56 // NOLINTEND
57
58 public:
59 // destructor thunk
60 // NOLINTBEGIN
61 MCFOLD void $dtor();
62 // NOLINTEND
63 };
64
65 struct FacetEntry {
66 public:
67 // member variables
68 // NOLINTBEGIN
69 ::ll::TypedStorage<8, 32, ::std::string> name;
70 ::ll::TypedStorage<8, 32, ::std::string> id;
71 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::OreUI::IFacet>> facet;
72 ::ll::TypedStorage<1, 1, bool> isSuspended;
73 // NOLINTEND
74
75 public:
76 // prevent constructor by default
77 FacetEntry& operator=(FacetEntry const&);
78 FacetEntry(FacetEntry const&);
79 FacetEntry();
80
81 public:
82 // member functions
83 // NOLINTBEGIN
84 MCAPI ::OreUI::FacetRegistry::FacetEntry& operator=(::OreUI::FacetRegistry::FacetEntry&&);
85
86 MCAPI ~FacetEntry();
87 // NOLINTEND
88
89 public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCFOLD void $dtor();
93 // NOLINTEND
94 };
95
96public:
97 // member variables
98 // NOLINTBEGIN
99 ::ll::TypedStorage<4, 4, ::OreUI::FacetRegistryLocation> mLocation;
100 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mUpdatingFacets;
101 ::ll::TypedStorage<8, 24, ::std::vector<::OreUI::FacetRegistry::FacetEntry>> mFacets;
102 ::ll::TypedStorage<8, 24, ::std::vector<::OreUI::FacetRegistry::FacetPrototype>> mFacetPrototypes;
103 ::ll::TypedStorage<1, 1, bool> mIsActivationDisabled;
104 // NOLINTEND
105
106public:
107 // virtual functions
108 // NOLINTBEGIN
109 virtual ~FacetRegistry() /*override*/;
110
111 virtual void registerFacet(
112 ::std::string const& name,
113 ::std::function<::std::unique_ptr<::OreUI::IFacet>()> const& constructor
114 ) /*override*/;
115
116 virtual ::std::optional<::OreUI::IFacetRegistry::Error> activateFacet(
117 ::OreUI::FacetBinder& binder,
118 ::std::string const& name,
119 ::std::string const& id,
120 ::std::unordered_map<::std::string, ::std::variant<double, bool, ::std::string>> const& payload
121 ) /*override*/;
122
123 virtual ::std::optional<::OreUI::IFacetRegistry::Error>
124 deactivateFacet(::OreUI::FacetBinder& binder, ::std::string const& id) /*override*/;
125
126 virtual void clearAllFacets() /*override*/;
127
128 virtual void suspendAllFacets() /*override*/;
129
130 virtual void disableFacetActivation() /*override*/;
131
132 virtual void bind(::OreUI::FacetBinder& binder) /*override*/;
133
134 virtual ::std::vector<::std::string> const& update(::OreUI::FacetBinder& binder) /*override*/;
135
136 virtual ::std::unordered_map<::std::string, ::Bedrock::NotNullNonOwnerPtr<::OreUI::IFacet>>
137 getActiveFacets() /*override*/;
138 // NOLINTEND
139
140public:
141 // destructor thunk
142 // NOLINTBEGIN
143 MCAPI void $dtor();
144 // NOLINTEND
145
146public:
147 // virtual function thunks
148 // NOLINTBEGIN
149 MCAPI void
150 $registerFacet(::std::string const& name, ::std::function<::std::unique_ptr<::OreUI::IFacet>()> const& constructor);
151
152 MCAPI ::std::optional<::OreUI::IFacetRegistry::Error> $activateFacet(
153 ::OreUI::FacetBinder& binder,
154 ::std::string const& name,
155 ::std::string const& id,
156 ::std::unordered_map<::std::string, ::std::variant<double, bool, ::std::string>> const& payload
157 );
158
159 MCAPI ::std::optional<::OreUI::IFacetRegistry::Error>
160 $deactivateFacet(::OreUI::FacetBinder& binder, ::std::string const& id);
161
162 MCAPI void $clearAllFacets();
163
164 MCAPI void $suspendAllFacets();
165
166 MCAPI void $disableFacetActivation();
167
168 MCAPI void $bind(::OreUI::FacetBinder& binder);
169
170 MCAPI ::std::vector<::std::string> const& $update(::OreUI::FacetBinder& binder);
171
172 MCAPI ::std::unordered_map<::std::string, ::Bedrock::NotNullNonOwnerPtr<::OreUI::IFacet>> $getActiveFacets();
173 // NOLINTEND
174
175public:
176 // vftables
177 // NOLINTBEGIN
178 MCNAPI static void** $vftable();
179 // NOLINTEND
180};
181
182} // namespace OreUI
Definition FacetBinder.h:7
Definition FacetRegistry.h:7
static MCAPI void ** $vftable()
Definition IFacet.h:7
Definition FacetRegistry.h:18
Definition FacetRegistry.h:16