Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BehaviorFactory Class Reference

Public Types

using DefinitionCreator = ::std::function<::std::unique_ptr<::BehaviorDefinition>()>
using NodeCreator = ::std::function<::std::unique_ptr<::BehaviorNode>()>

Public Member Functions

MCAPI void _initNodes ()
MCAPI ::std::unique_ptr<::BehaviorDefinition > loadNodeDefinition (::std::string const &name, ::Json::Value root, ::BehaviorTreeDefinitionPtr &ptr) const
MCAPI void registerNodePair (::std::string const &id, ::std::function<::std::unique_ptr<::BehaviorDefinition >()> definitionCreator, ::std::function<::std::unique_ptr<::BehaviorNode >()> nodeCreator)

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map< ::std::string, ::std::pair< ::std::function<::std::unique_ptr<::BehaviorDefinition >()>, ::std::function<::std::unique_ptr<::BehaviorNode >()> > > > mFactoryPairs

Member Function Documentation

◆ _initNodes()

MCAPI void BehaviorFactory::_initNodes ( )
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.

◆ loadNodeDefinition()

MCAPI ::std::unique_ptr<::BehaviorDefinition > BehaviorFactory::loadNodeDefinition ( ::std::string const & name,
::Json::Value root,
::BehaviorTreeDefinitionPtr & ptr ) 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.

◆ registerNodePair()

MCAPI void BehaviorFactory::registerNodePair ( ::std::string const & id,
::std::function<::std::unique_ptr<::BehaviorDefinition >()> definitionCreator,
::std::function<::std::unique_ptr<::BehaviorNode >()> nodeCreator )
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 file: