NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::BTNativeRegistry Class Reference

#include <BTNativeRegistry.h>

Public Types

using Action = std::function<BTStatus(BTContext&, float)>
using Condition = std::function<bool(BTContext&)>

Public Member Functions

void RegisterAction (std::string name, Action callback)
void RegisterCondition (std::string name, Condition callback)
bool HasAction (std::string_view name) const
bool HasCondition (std::string_view name) const
std::vector< std::string > ActionNames () const
std::vector< std::string > ConditionNames () const
const Action & GetAction (std::string_view name) const
const Condition & GetCondition (std::string_view name) const

Detailed Description

Definition at line 21 of file BTNativeRegistry.h.

Member Typedef Documentation

◆ Action

using NoJob::BTNativeRegistry::Action = std::function<BTStatus(BTContext&, float)>

Definition at line 23 of file BTNativeRegistry.h.

◆ Condition

using NoJob::BTNativeRegistry::Condition = std::function<bool(BTContext&)>

Definition at line 24 of file BTNativeRegistry.h.

Member Function Documentation

◆ ActionNames()

std::vector< std::string > NoJob::BTNativeRegistry::ActionNames ( ) const
inline

Definition at line 50 of file BTNativeRegistry.h.

◆ ConditionNames()

std::vector< std::string > NoJob::BTNativeRegistry::ConditionNames ( ) const
inline

Definition at line 57 of file BTNativeRegistry.h.

◆ GetAction()

const Action & NoJob::BTNativeRegistry::GetAction ( std::string_view name) const
inline

Definition at line 65 of file BTNativeRegistry.h.

◆ GetCondition()

const Condition & NoJob::BTNativeRegistry::GetCondition ( std::string_view name) const
inline

Definition at line 71 of file BTNativeRegistry.h.

◆ HasAction()

bool NoJob::BTNativeRegistry::HasAction ( std::string_view name) const
inline

Definition at line 42 of file BTNativeRegistry.h.

Referenced by NoJob::Scene::RegisterEntityBehaviorTreeBindings().

◆ HasCondition()

bool NoJob::BTNativeRegistry::HasCondition ( std::string_view name) const
inline

Definition at line 45 of file BTNativeRegistry.h.

Referenced by NoJob::Scene::RegisterEntityBehaviorTreeBindings().

◆ RegisterAction()

void NoJob::BTNativeRegistry::RegisterAction ( std::string name,
Action callback )
inline

Definition at line 26 of file BTNativeRegistry.h.

Referenced by NoJob::BTRegisterScriptAction().

◆ RegisterCondition()

void NoJob::BTNativeRegistry::RegisterCondition ( std::string name,
Condition callback )
inline

Definition at line 34 of file BTNativeRegistry.h.

Referenced by NoJob::BTRegisterScriptCondition().


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