From 3534d49d9b21cd0d153b57da68a96789b44b99cf Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 4 Apr 2025 13:54:36 +0200 Subject: [PATCH] chore: some comment updates --- src/area_transfer.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/area_transfer.hpp b/src/area_transfer.hpp index 3b29171..ca21560 100644 --- a/src/area_transfer.hpp +++ b/src/area_transfer.hpp @@ -12,8 +12,17 @@ class AreaTransfer : public gd::Area3D { static void _bind_methods(); public: virtual void _ready() override; + /** listener connected in _ready + * checks if 'body' is a CharacterUnit, and registers it in ready_units + */ void _on_body_entered(gd::Node3D *body); + /** listener connected in _ready + * checks if 'body is in the ready_units list, and removes it if so. + */ void _on_body_exited(gd::Node3D *body); + /** checks if ready_units contains all player units on the field right now + * loads next_scene + */ void check_all_ready(); void set_next_scene(gd::String path); gd::String get_next_scene() const;