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"
|
2022-12-15 07:26:52 +00:00
|
|
|
#include "core/object/object.h"
|
2022-09-20 17:15:48 +00:00
|
|
|
|
|
|
|
#include "bt_decorator.h"
|
|
|
|
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; }
|
|
|
|
|
2023-04-10 08:08:11 +00:00
|
|
|
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
|