limboai/bt/decorators/bt_delay.h

30 lines
515 B
C
Raw Normal View History

/* bt_delay.h */
2022-08-28 13:24:01 +00:00
#ifndef BT_DELAY_H
#define BT_DELAY_H
#include "bt_decorator.h"
2023-07-20 16:35:36 +00:00
#include "core/object/object.h"
class BTDelay : public BTDecorator {
GDCLASS(BTDelay, BTDecorator);
private:
double seconds = 1.0;
protected:
static void _bind_methods();
virtual String _generate_name() const override;
virtual int _tick(double p_delta) override;
public:
void set_seconds(double p_value) {
seconds = p_value;
emit_changed();
2022-08-31 15:05:25 +00:00
}
double get_seconds() const { return seconds; }
};
2022-08-28 13:24:01 +00:00
#endif // BT_DELAY_H