3#include "mc/_HeaderOutputPredefine.h"
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"
13namespace OreUI {
class IFacet; }
31 ::ll::TypedStorage<8, 32, ::std::string const> name;
32 ::ll::TypedStorage<8, 64, ::std::function<::std::unique_ptr<::OreUI::IFacet>()>
const> constructor;
37 FacetPrototype& operator=(FacetPrototype
const&);
43 MCAPI FacetPrototype(::OreUI::FacetRegistry::FacetPrototype&&);
45 MCAPI FacetPrototype(::OreUI::FacetRegistry::FacetPrototype
const&);
47 MCAPI ~FacetPrototype();
53 MCFOLD
void* $ctor(::OreUI::FacetRegistry::FacetPrototype&&);
55 MCFOLD
void* $ctor(::OreUI::FacetRegistry::FacetPrototype
const&);
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;
77 FacetEntry& operator=(FacetEntry
const&);
78 FacetEntry(FacetEntry
const&);
84 MCAPI ::OreUI::FacetRegistry::FacetEntry& operator=(::OreUI::FacetRegistry::FacetEntry&&);
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;
109 virtual ~FacetRegistry() ;
111 virtual void registerFacet(
112 ::std::string
const& name,
113 ::std::function<::std::unique_ptr<::OreUI::IFacet>()>
const& constructor
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
123 virtual ::std::optional<::OreUI::IFacetRegistry::Error>
124 deactivateFacet(::OreUI::FacetBinder& binder, ::std::string
const&
id) ;
126 virtual void clearAllFacets() ;
128 virtual void suspendAllFacets() ;
130 virtual void disableFacetActivation() ;
132 virtual void bind(::OreUI::FacetBinder& binder) ;
134 virtual ::std::vector<::std::string>
const& update(::OreUI::FacetBinder& binder) ;
136 virtual ::std::unordered_map<::std::string, ::Bedrock::NotNullNonOwnerPtr<::OreUI::IFacet>>
150 $registerFacet(::std::string
const& name, ::std::function<::std::unique_ptr<::OreUI::IFacet>()>
const& constructor);
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
159 MCAPI ::std::optional<::OreUI::IFacetRegistry::Error>
160 $deactivateFacet(::OreUI::FacetBinder& binder, ::std::string
const&
id);
162 MCAPI
void $clearAllFacets();
164 MCAPI
void $suspendAllFacets();
166 MCAPI
void $disableFacetActivation();
168 MCAPI
void $bind(::OreUI::FacetBinder& binder);
170 MCAPI ::std::vector<::std::string>
const& $update(::OreUI::FacetBinder& binder);
172 MCAPI ::std::unordered_map<::std::string, ::Bedrock::NotNullNonOwnerPtr<::OreUI::IFacet>> $getActiveFacets();
Definition FacetBinder.h:7
Definition FacetRegistry.h:7
static MCAPI void ** $vftable()
Definition FacetRegistry.h:18
Definition FacetRegistry.h:16