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

Opt in to NetMsg trait #13

Open
MitchellMarinoDev opened this issue Nov 15, 2024 · 0 comments
Open

Opt in to NetMsg trait #13

MitchellMarinoDev opened this issue Nov 15, 2024 · 0 comments

Comments

@MitchellMarinoDev
Copy link
Owner

Right now the NetMsg trait has a generic implementation for all types that implement Downcast + Send + Sync + Debug. Instead, it could be better to switch this to a derive where you have to opt-in to your type being a NetMsg.

This would allow us to have a derive macro which specifies the Reliability requirements. It would make more sense to specify those requirements next to the message definition, rather than when you register it.

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

No branches or pull requests

1 participant