18 lines
479 B
C++
18 lines
479 B
C++
#pragma once
|
|
#include "behaviour_nodes/behaviour_node.h"
|
|
|
|
class BehaviourComposite : public BehaviourNode {
|
|
GDCLASS(BehaviourComposite, BehaviourNode);
|
|
static void _bind_methods();
|
|
void child_order_changed();
|
|
|
|
protected:
|
|
void _notification(int what);
|
|
|
|
private:
|
|
Vector<BehaviourNode *> child_behaviours{};
|
|
|
|
public:
|
|
Vector<BehaviourNode *> const &get_child_behaviours() const { return this->child_behaviours; }
|
|
GET_SET_REF_FNS(Vector<BehaviourNode *>, child_behaviours);
|
|
};
|