Skip to content
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

Implement builtin type Signal #570

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Conversation

TitanNano
Copy link
Contributor

Implementation of the built-in type Signal.

The implementation is heavily based on the already present Callable type.

@GodotRust

This comment was marked as duplicate.

@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-570

@Bromeon Bromeon added feature Adds functionality to the library c: core Core components labels Jan 18, 2024
@TitanNano TitanNano force-pushed the jovan/signal branch 4 times, most recently from 6cd5e3c to 62565d0 Compare January 19, 2024 21:41
@TitanNano TitanNano marked this pull request as ready for review January 19, 2024 21:49
@TitanNano
Copy link
Contributor Author

@Bromeon I'm not quite sure what is going on with the crash in 4.0

Copy link
Member

@Bromeon Bromeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

Regarding the crash, it seems test_varcall_signal fails. It may need more debugging, but from a distance, it could be that the conversion between Variant and Signal is not correctly implemented for Godot 4.0.

Maybe you could add tests in variant_conversions() (variant_test.rs) for signals -- and see if those pass or not? Feel free to use #[itest(focus)].

godot-core/src/builtin/signal.rs Show resolved Hide resolved
godot-core/src/builtin/signal.rs Outdated Show resolved Hide resolved
godot-core/src/builtin/signal.rs Outdated Show resolved Hide resolved
godot-core/src/builtin/signal.rs Outdated Show resolved Hide resolved
godot-core/src/builtin/signal.rs Outdated Show resolved Hide resolved
Copy link
Member

@Bromeon Bromeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@Bromeon Bromeon added this pull request to the merge queue Jan 21, 2024
Merged via the queue into godot-rust:master with commit 11797f8 Jan 21, 2024
16 checks passed
@TitanNano TitanNano deleted the jovan/signal branch January 21, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: core Core components feature Adds functionality to the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants