27 lines
979 B
C++
27 lines
979 B
C++
#include "behaviour_nodes/register_types.h"
|
|
#include "behaviour_nodes/behaviour_action.h"
|
|
#include "behaviour_nodes/behaviour_node.h"
|
|
#include "behaviour_nodes/behaviour_tree.h"
|
|
#include "behaviour_nodes/control_nodes.h"
|
|
#include "behaviour_nodes/decorator_nodes.h"
|
|
#include "core/object/class_db.h"
|
|
|
|
void initialize_behaviour_nodes_module(ModuleInitializationLevel p_level) {
|
|
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
|
return;
|
|
}
|
|
ClassDB::register_class<BehaviourTree>();
|
|
ClassDB::register_abstract_class<BehaviourNode>();
|
|
ClassDB::register_class<BehaviourSequence>();
|
|
ClassDB::register_class<BehaviourRepeater>();
|
|
ClassDB::register_class<BehaviourSelector>();
|
|
ClassDB::register_class<BehaviourAction>();
|
|
ClassDB::register_class<BehaviourRepeatUntilFail>();
|
|
ClassDB::register_class<BehaviourAlwaysSuccess>();
|
|
}
|
|
|
|
void uninitialize_behaviour_nodes_module(ModuleInitializationLevel p_level) {
|
|
if (p_level != MODULE_INITIALIZATION_LEVEL_SCENE) {
|
|
return;
|
|
}
|
|
}
|