diff --git a/debugger/limbo_debugger_plugin.h b/debugger/limbo_debugger_plugin.h index 6d139eb..7766a55 100644 --- a/debugger/limbo_debugger_plugin.h +++ b/debugger/limbo_debugger_plugin.h @@ -28,17 +28,14 @@ private: TextureRect *info_icon; Label *info_message; - _FORCE_INLINE_ void _set_info_message(const String &p_message); + void _set_info_message(const String &p_message); void _bt_selected(int p_idx); -protected: - // void _notification(int p_notification); - public: void start_session(); void stop_session(); void update_bt_list(const Array &p_items); - BehaviorTreeView *get_behavior_tree_view() { return bt_view; } + BehaviorTreeView *get_behavior_tree_view() const { return bt_view; } LimboDebuggerTab(Ref p_session); }; diff --git a/test/ai/tasks/arrive_pos.gd b/test/ai/tasks/arrive_pos.gd index 83cc6e1..fb5a882 100644 --- a/test/ai/tasks/arrive_pos.gd +++ b/test/ai/tasks/arrive_pos.gd @@ -17,7 +17,7 @@ func _tick(p_delta: float) -> int: var target_pos: Vector2 = blackboard.get_var(target_position_var, Vector2.ZERO) if target_pos.distance_to(agent.global_position) < tolerance: return SUCCESS - + var speed: float = blackboard.get_var(speed_var, 10.0) var dir: Vector2 = agent.global_position.direction_to(target_pos) agent.global_position += dir * speed * p_delta diff --git a/test/ai/tasks/play_animation.gd b/test/ai/tasks/play_animation.gd index fa5fba3..ca48326 100644 --- a/test/ai/tasks/play_animation.gd +++ b/test/ai/tasks/play_animation.gd @@ -9,7 +9,7 @@ var _finished: bool func _generate_name() -> String: - return "PlayAnimation \"%s\"" % animation_name + return "PlayAnimation \"%s\"" % animation_name func _setup() -> void: diff --git a/test/ai/tasks/start_animation.gd b/test/ai/tasks/start_animation.gd index 375a0e3..938bed0 100644 --- a/test/ai/tasks/start_animation.gd +++ b/test/ai/tasks/start_animation.gd @@ -8,7 +8,7 @@ var _player: AnimationPlayer func _generate_name() -> String: - return "StartAnimation \"%s\"" % animation_name + return "StartAnimation \"%s\"" % animation_name func _setup() -> void: diff --git a/test/project.godot b/test/project.godot index 8d07d6f..4101572 100644 --- a/test/project.godot +++ b/test/project.godot @@ -12,7 +12,7 @@ config_version=5 config/name="LimboAI Test" run/main_scene="res://tests/waypoints/test_waypoints.tscn" -config/features=PackedStringArray("4.0") +config/features=PackedStringArray("4.1") config/icon="res://icon.png" [gui] diff --git a/test/tests/waypoints/Agent.tscn b/test/tests/waypoints/Agent.tscn index 7ca78ac..51a2ef7 100644 --- a/test/tests/waypoints/Agent.tscn +++ b/test/tests/waypoints/Agent.tscn @@ -46,7 +46,7 @@ script = ExtResource("1_1l3ql") [node name="BTPlayer" type="BTPlayer" parent="."] behavior_tree = ExtResource("2_ijwrx") _blackboard_data = { -"speed": 500.0 +"speed": 200.0 } [node name="Sprite2D" type="Sprite2D" parent="."] diff --git a/test/tests/waypoints/test_waypoints.gd b/test/tests/waypoints/test_waypoints.gd index 8d000e1..56598d7 100644 --- a/test/tests/waypoints/test_waypoints.gd +++ b/test/tests/waypoints/test_waypoints.gd @@ -6,10 +6,10 @@ extends Node2D func _ready() -> void: var waypoints: Array[Node] = $Waypoints.get_children() - + for wp in waypoints: agent.add_waypoint(wp.global_position) - + waypoints.reverse() for wp in waypoints: agent_2.add_waypoint(wp.global_position)