Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
UIDefRepository Class Reference
Inheritance diagram for UIDefRepository:

Classes

class  UIDefNamespace
struct  DefEntry

Public Types

using VisitNodeFunc
using DefEntriesPtr = ::std::shared_ptr<::std::vector<::UIDefRepository::DefEntry>>
using ReportsPtr = ::std::shared_ptr<::std::unordered_map<::PackInstanceId, ::PackReport>>
using UIDefNamespaceMap = ::std::unordered_map<::std::string, ::UIDefRepository::UIDefNamespace>
using PackReportsCallback

Public Member Functions

virtual void loadDefsList (::ResourceLocation const &defsListFile, ::ResourcePackLoader const &packLoader, ::brstd::move_only_function< void(::std::unordered_map<::PackInstanceId, ::PackReport > &) const > onReportsReady)
virtual void validateDefEntries (::ResourceLocation const &defsListFile, ::ResourcePackLoader const &packLoader, ::brstd::move_only_function< void(::std::unordered_map<::PackInstanceId, ::PackReport > &) const > onReportsReady) const
virtual::Json::Value const & findDef (::std::string const &defNamespace, ::std::string const &defName) const
virtual ::Bedrock::Threading::SharedLock<::std::shared_mutex > acquireSharedLock () const
virtual void syncUILoad ()
virtual void syncUILoadDefinitions ()
virtual void syncUILoadDefinitionReferences ()
virtual void cancelUIValidation ()
virtual bool isLoadingDone () const
virtual bool isUILoadingDone () const
virtual bool isUIValidationDone () const
virtual void forEachControl (::std::function< void(::Json::Value const &, ::std::string const &)> callback)
virtual::Json::Value const & getGlobalVariables () const
virtual void translateLegacyItemIdsInRepository (::ItemRegistryRef const itemRegistry)
MCAPI UIDefRepository (::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager)
MCAPI void _applyGlobalColorFormat ()
MCAPI void _collectAllDefEntries (::ResourceLoadType loadType, ::ResourceLocation const &defsListFile, ::ResourcePackLoader const &packLoader, ::std::shared_ptr<::std::vector<::UIDefRepository::DefEntry > > allDefEntries, ::std::shared_ptr<::std::unordered_map<::PackInstanceId, ::PackReport > > packReports) const
MCAPI void _forEachControl (::Json::Value const &value, ::std::string const &namePath, ::std::function< void(::Json::Value const &, ::std::string const &)> callback)
MCAPI void * $ctor (::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager)
MCAPI void $loadDefsList (::ResourceLocation const &defsListFile, ::ResourcePackLoader const &packLoader, ::brstd::move_only_function< void(::std::unordered_map<::PackInstanceId, ::PackReport > &) const > onReportsReady)
MCAPI void $validateDefEntries (::ResourceLocation const &defsListFile, ::ResourcePackLoader const &packLoader, ::brstd::move_only_function< void(::std::unordered_map<::PackInstanceId, ::PackReport > &) const > onReportsReady) const
MCAPI::Json::Value const & $findDef (::std::string const &defNamespace, ::std::string const &defName) const
MCAPI ::Bedrock::Threading::SharedLock<::std::shared_mutex > $acquireSharedLock () const
MCAPI void $syncUILoad ()
MCAPI void $syncUILoadDefinitions ()
MCAPI void $syncUILoadDefinitionReferences ()
MCAPI void $cancelUIValidation ()
MCAPI bool $isLoadingDone () const
MCAPI bool $isUILoadingDone () const
MCAPI bool $isUIValidationDone () const
MCAPI void $forEachControl (::std::function< void(::Json::Value const &, ::std::string const &)> callback)
MCAPI::Json::Value const & $getGlobalVariables () const
MCAPI void $translateLegacyItemIdsInRepository (::ItemRegistryRef const itemRegistry)
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 24, ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > > mResourceLoadManager
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::UIDefRepository::UIDefNamespace > > mDefNamespaces
::ll::TypedStorage< 8, 16, ::Json::Value > mGlobalVariables
::ll::TypedStorage< 8, 8, ::std::shared_mutex > mMutex
::std::shared_ptr<::Bedrock::EnableNonOwnerReferences::ControlBlock > mControlBlock

Member Typedef Documentation

◆ VisitNodeFunc

using UIDefRepository::VisitNodeFunc
Initial value:
::std::function<
::Json::Value&(::std::string const&, ::std::string const&, ::std::string const&, ::Json::Value&)>
Definition Value.h:16

◆ PackReportsCallback

using IUIDefRepository::PackReportsCallback
inherited
Initial value:
::brstd::move_only_function<void(::std::unordered_map<::PackInstanceId, ::PackReport>&) const>
Definition move_only_function.h:9

Constructor & Destructor Documentation

◆ UIDefRepository()

MCAPI UIDefRepository::UIDefRepository ( ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager)
explicit
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.

Member Function Documentation

◆ loadDefsList()

virtual void UIDefRepository::loadDefsList ( ::ResourceLocation const & defsListFile,
::ResourcePackLoader const & packLoader,
::brstd::move_only_function< void(::std::unordered_map<::PackInstanceId, ::PackReport > &) const > onReportsReady )
virtual

Implements IUIDefRepository.

◆ validateDefEntries()

virtual void UIDefRepository::validateDefEntries ( ::ResourceLocation const & defsListFile,
::ResourcePackLoader const & packLoader,
::brstd::move_only_function< void(::std::unordered_map<::PackInstanceId, ::PackReport > &) const > onReportsReady ) const
virtual

Implements IUIDefRepository.

◆ findDef()

virtual::Json::Value const & UIDefRepository::findDef ( ::std::string const & defNamespace,
::std::string const & defName ) const
virtual

Implements IUIDefRepository.

◆ acquireSharedLock()

virtual ::Bedrock::Threading::SharedLock<::std::shared_mutex > UIDefRepository::acquireSharedLock ( ) const
virtual

Implements IUIDefRepository.

◆ syncUILoad()

virtual void UIDefRepository::syncUILoad ( )
virtual

Implements IUIDefRepository.

◆ syncUILoadDefinitions()

virtual void UIDefRepository::syncUILoadDefinitions ( )
virtual

Implements IUIDefRepository.

◆ syncUILoadDefinitionReferences()

virtual void UIDefRepository::syncUILoadDefinitionReferences ( )
virtual

Implements IUIDefRepository.

◆ cancelUIValidation()

virtual void UIDefRepository::cancelUIValidation ( )
virtual

Implements IUIDefRepository.

◆ isLoadingDone()

virtual bool UIDefRepository::isLoadingDone ( ) const
virtual

Implements IUIDefRepository.

◆ isUILoadingDone()

virtual bool UIDefRepository::isUILoadingDone ( ) const
virtual

Implements IUIDefRepository.

◆ isUIValidationDone()

virtual bool UIDefRepository::isUIValidationDone ( ) const
virtual

Implements IUIDefRepository.

◆ forEachControl()

virtual void UIDefRepository::forEachControl ( ::std::function< void(::Json::Value const &, ::std::string const &)> callback)
virtual

Implements IUIDefRepository.

◆ getGlobalVariables()

virtual::Json::Value const & UIDefRepository::getGlobalVariables ( ) const
virtual

Implements IUIDefRepository.

◆ translateLegacyItemIdsInRepository()

virtual void UIDefRepository::translateLegacyItemIdsInRepository ( ::ItemRegistryRef const itemRegistry)
virtual

Implements IUIDefRepository.

◆ _applyGlobalColorFormat()

MCAPI void UIDefRepository::_applyGlobalColorFormat ( )
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.

◆ _collectAllDefEntries()

MCAPI void UIDefRepository::_collectAllDefEntries ( ::ResourceLoadType loadType,
::ResourceLocation const & defsListFile,
::ResourcePackLoader const & packLoader,
::std::shared_ptr<::std::vector<::UIDefRepository::DefEntry > > allDefEntries,
::std::shared_ptr<::std::unordered_map<::PackInstanceId, ::PackReport > > packReports ) const
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.

◆ _forEachControl()

MCAPI void UIDefRepository::_forEachControl ( ::Json::Value const & value,
::std::string const & namePath,
::std::function< void(::Json::Value const &, ::std::string const &)> callback )
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.

◆ $ctor()

MCAPI void * UIDefRepository::$ctor ( ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager > resourceLoadManager)
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.

◆ $loadDefsList()

MCAPI void UIDefRepository::$loadDefsList ( ::ResourceLocation const & defsListFile,
::ResourcePackLoader const & packLoader,
::brstd::move_only_function< void(::std::unordered_map<::PackInstanceId, ::PackReport > &) const > onReportsReady )
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.

◆ $validateDefEntries()

MCAPI void UIDefRepository::$validateDefEntries ( ::ResourceLocation const & defsListFile,
::ResourcePackLoader const & packLoader,
::brstd::move_only_function< void(::std::unordered_map<::PackInstanceId, ::PackReport > &) const > onReportsReady ) const
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.

◆ $acquireSharedLock()

MCAPI ::Bedrock::Threading::SharedLock<::std::shared_mutex > UIDefRepository::$acquireSharedLock ( ) const
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.

◆ $syncUILoad()

MCAPI void UIDefRepository::$syncUILoad ( )
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.

◆ $syncUILoadDefinitions()

MCAPI void UIDefRepository::$syncUILoadDefinitions ( )
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.

◆ $syncUILoadDefinitionReferences()

MCAPI void UIDefRepository::$syncUILoadDefinitionReferences ( )
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.

◆ $cancelUIValidation()

MCAPI void UIDefRepository::$cancelUIValidation ( )
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.

◆ $isLoadingDone()

MCAPI bool UIDefRepository::$isLoadingDone ( ) const
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.

◆ $isUILoadingDone()

MCAPI bool UIDefRepository::$isUILoadingDone ( ) const
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.

◆ $isUIValidationDone()

MCAPI bool UIDefRepository::$isUIValidationDone ( ) const
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.

◆ $forEachControl()

MCAPI void UIDefRepository::$forEachControl ( ::std::function< void(::Json::Value const &, ::std::string const &)> callback)
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.

◆ $getGlobalVariables()

MCAPI::Json::Value const & UIDefRepository::$getGlobalVariables ( ) const
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.

◆ $translateLegacyItemIdsInRepository()

MCAPI void UIDefRepository::$translateLegacyItemIdsInRepository ( ::ItemRegistryRef const itemRegistry)
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.

◆ $vftable()

MCAPI void ** Bedrock::EnableNonOwnerReferences::$vftable ( )
staticinherited
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: