limboai/bt/decorators/bt_new_scope.h

28 lines
610 B
C
Raw Normal View History

2022-09-20 17:15:48 +00:00
/* bt_new_scope.h */
#ifndef BT_NEW_SCOPE_H
#define BT_NEW_SCOPE_H
#include "bt_decorator.h"
2023-07-20 16:35:36 +00:00
#include "core/object/object.h"
2022-09-20 17:15:48 +00:00
class BTNewScope : public BTDecorator {
GDCLASS(BTNewScope, BTDecorator);
private:
Dictionary blackboard_data;
protected:
static void _bind_methods();
void _set_blackboard_data(const Dictionary &p_value) { blackboard_data = p_value; }
Dictionary _get_blackboard_data() const { return blackboard_data; }
virtual int _tick(double p_delta) override;
2022-09-20 17:15:48 +00:00
public:
2022-12-17 07:33:18 +00:00
virtual void initialize(Node *p_agent, const Ref<Blackboard> &p_blackboard) override;
2022-09-20 17:15:48 +00:00
};
#endif // BT_NEW_SCOPE_H