Skip to content

dodge-the-creeps: use native Rust signals for timers #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2025

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Apr 21, 2025

With the advent of godot-rust/gdext#1134, we can now connect all signals in Rust.

One signal, StartTimer.timeout, is still kept in the Editor UI for demonstration purpose.

There is another change: _body: Gd<PhysicsBody2D> now needs to be _body: Gd<Node2D> to match the declared Godot signature. This is slightly less type-safe, but we're now guaranteed that no error can occur during parameter passing.

@Bromeon Bromeon added the enhancement Ongoing improvements to existing demos label Apr 21, 2025
@Bromeon Bromeon added this pull request to the merge queue Apr 21, 2025
Merged via the queue into master with commit 800a868 Apr 21, 2025
12 checks passed
@Bromeon Bromeon deleted the dodge-the-creeps/inherited-signals branch April 21, 2025 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Ongoing improvements to existing demos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant