17 lines
382 B
C++
17 lines
382 B
C++
#pragma once
|
|
|
|
#include "behaviour_nodes/behaviour_node.h"
|
|
|
|
class BehaviourAction : public BehaviourNode {
|
|
GDCLASS(BehaviourAction, BehaviourNode);
|
|
static void _bind_methods();
|
|
|
|
public:
|
|
void enter() override;
|
|
void execute() override;
|
|
void exit() override;
|
|
BehaviourNode *get_next() override;
|
|
GDVIRTUAL0R(Status, _execute);
|
|
GDVIRTUAL0R(Status, _enter);
|
|
GDVIRTUAL0(_exit);
|
|
};
|