feat: registering get_unit with class db

This commit is contained in:
Sara 2025-08-27 22:53:47 +02:00
parent 3c59403a07
commit 0ff5f4ae9c

View file

@ -4,6 +4,7 @@
void EnemyBody::_bind_methods() { void EnemyBody::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_movement_direction", "direction"), &self_type::set_movement_direction); ClassDB::bind_method(D_METHOD("set_movement_direction", "direction"), &self_type::set_movement_direction);
ClassDB::bind_method(D_METHOD("get_unit"), &self_type::get_unit);
} }
void EnemyBody::on_child_added(Node *node) { void EnemyBody::on_child_added(Node *node) {