Closed
Description
I just saw that type-safe signals have recently been added to godot-rust, including a chapter in the book. That chapter solely focuses on signals defined in custom classes. Is there a way to use signals defined by the Godot library in types like Node
in a type-safe way? Is this still work in progress (considering it's just on the master branch, not a released version)?
#[godot_api]
impl IArea2D for Player {
fn ready(&mut self) {
self.base().signals().body_entered().connect(/* ... */);
}
}