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

Remove class traits #474

Merged
merged 11 commits into from
Feb 7, 2025
Merged

Remove class traits #474

merged 11 commits into from
Feb 7, 2025

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Feb 1, 2025

HasBool, HasStr and HasString are no longer required. This PR removes them, replacing with simple methods.

Some of these methods are adapted to require a &mut EventState argument instead of returning an Action, which, while less flexible, is still sufficient (given that values are now usually set through fn update) and simplifies usage.

@dhardy dhardy merged commit 315ba8a into master Feb 7, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant