viscosity/modules/behaviour_nodes/behaviour_composite.h
Sara 5c8fb517a0 Add 'modules/behaviour_nodes/' from commit 'd51f4da2a9'
git-subtree-dir: modules/behaviour_nodes
git-subtree-mainline: 07d69bf55e
git-subtree-split: d51f4da2a9
2026-04-25 19:07:05 +02:00

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);
};