LeviLamina
Loading...
Searching...
No Matches
OreUI::FacetRegistry Class Reference
Inheritance diagram for OreUI::FacetRegistry:

Classes

struct  FacetPrototype
struct  FacetEntry

Public Types

enum class  Error : int {
  AlreadyActive = 0 , AlreadyInactive = 1 , ActivateNotFound = 2 , DeactivateNotFound = 3 ,
  InitFailed = 4
}
enum class  Error : int {
  AlreadyActive = 0 , AlreadyInactive = 1 , ActivateNotFound = 2 , DeactivateNotFound = 3 ,
  InitFailed = 4
}
using payload_value_t = ::std::variant<double, bool, ::std::string>
using Payload = ::std::unordered_map<::std::string, ::std::variant<double, bool, ::std::string>>

Public Member Functions

virtual void registerFacet (::std::string const &name, ::std::function<::std::unique_ptr<::OreUI::IFacet >()> const &constructor)
virtual ::std::optional<::OreUI::IFacetRegistry::Error > activateFacet (::OreUI::FacetBinder &binder, ::std::string const &name, ::std::string const &id, ::std::unordered_map<::std::string, ::std::variant< double, bool, ::std::string > > const &payload)
virtual ::std::optional<::OreUI::IFacetRegistry::Error > deactivateFacet (::OreUI::FacetBinder &binder, ::std::string const &id)
virtual void clearAllFacets ()
virtual void suspendAllFacets ()
virtual void bind (::OreUI::FacetBinder &binder)
virtual ::std::vector<::std::string > const & update (::OreUI::FacetBinder &binder)
virtual ::std::unordered_map<::std::string, ::Bedrock::NotNullNonOwnerPtr<::OreUI::IFacet > > getActiveFacets ()
MCAPI void $dtor ()
MCAPI void $registerFacet (::std::string const &name, ::std::function<::std::unique_ptr<::OreUI::IFacet >()> const &constructor)
MCAPI ::std::optional<::OreUI::IFacetRegistry::Error > $activateFacet (::OreUI::FacetBinder &binder, ::std::string const &name, ::std::string const &id, ::std::unordered_map<::std::string, ::std::variant< double, bool, ::std::string > > const &payload)
MCAPI ::std::optional<::OreUI::IFacetRegistry::Error > $deactivateFacet (::OreUI::FacetBinder &binder, ::std::string const &id)
MCAPI void $clearAllFacets ()
MCAPI void $suspendAllFacets ()
MCAPI void $bind (::OreUI::FacetBinder &binder)
MCAPI ::std::vector<::std::string > const & $update (::OreUI::FacetBinder &binder)
MCAPI ::std::unordered_map<::std::string, ::Bedrock::NotNullNonOwnerPtr<::OreUI::IFacet > > $getActiveFacets ()
MCFOLD void * $ctor ()
MCFOLD void * $ctor (::Bedrock::EnableNonOwnerReferences const &)

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 4, 4, ::OreUI::FacetRegistryLocation > mLocation
::ll::TypedStorage< 8, 24, ::std::vector<::std::string > > mUpdatingFacets
::ll::TypedStorage< 8, 24, ::std::vector<::OreUI::FacetRegistry::FacetEntry > > mFacets
::ll::TypedStorage< 8, 24, ::std::vector<::OreUI::FacetRegistry::FacetPrototype > > mFacetPrototypes
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlockmControlBlock

Member Function Documentation

◆ registerFacet()

virtual void OreUI::FacetRegistry::registerFacet ( ::std::string const & name,
::std::function<::std::unique_ptr<::OreUI::IFacet >()> const & constructor )
virtual

Implements OreUI::IFacetRegistry.

◆ activateFacet()

virtual ::std::optional<::OreUI::IFacetRegistry::Error > OreUI::FacetRegistry::activateFacet ( ::OreUI::FacetBinder & binder,
::std::string const & name,
::std::string const & id,
::std::unordered_map<::std::string, ::std::variant< double, bool, ::std::string > > const & payload )
virtual

Implements OreUI::IFacetRegistry.

◆ deactivateFacet()

virtual ::std::optional<::OreUI::IFacetRegistry::Error > OreUI::FacetRegistry::deactivateFacet ( ::OreUI::FacetBinder & binder,
::std::string const & id )
virtual

Implements OreUI::IFacetRegistry.

◆ clearAllFacets()

virtual void OreUI::FacetRegistry::clearAllFacets ( )
virtual

Implements OreUI::IFacetRegistry.

◆ suspendAllFacets()

virtual void OreUI::FacetRegistry::suspendAllFacets ( )
virtual

Implements OreUI::IFacetRegistry.

◆ bind()

virtual void OreUI::FacetRegistry::bind ( ::OreUI::FacetBinder & binder)
virtual

Implements OreUI::IFacetRegistry.

◆ update()

virtual ::std::vector<::std::string > const & OreUI::FacetRegistry::update ( ::OreUI::FacetBinder & binder)
virtual

Implements OreUI::IFacetRegistry.

◆ getActiveFacets()

virtual ::std::unordered_map<::std::string, ::Bedrock::NotNullNonOwnerPtr<::OreUI::IFacet > > OreUI::FacetRegistry::getActiveFacets ( )
virtual

◆ $vftable()

MCAPI void ** OreUI::FacetRegistry::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: