feat: removed Planner::_process

This commit is contained in:
Sara 2024-03-30 23:04:16 +01:00
parent 662ede04e9
commit e1fd4b8e8d
2 changed files with 1 additions and 5 deletions

View file

@ -65,10 +65,7 @@ void Planner::_bind_methods() {
void Planner::_ready() {
this->global_world_state = GlobalWorldState::get_singleton();
}
void Planner::_process(double delta_time) {
this->cached_world_state.clear();
this->actor = Object::cast_to<CharacterActor>(this->get_parent());
}
static Vector<Ref<Action>> trace_path(FromMap &map, PlannerNode &end) {

View file

@ -45,7 +45,6 @@ class Planner : public Node {
static void _bind_methods();
public:
virtual void _ready() override;
virtual void _process(double delta_time) override;
Array gdscript_make_plan(Ref<Goal> goal);
Vector<Ref<Action>> make_plan(Ref<Goal> goal);