-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Remove the need to derive Event
when deriving EntityEvent
#20104
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
base: main
Are you sure you want to change the base?
Remove the need to derive Event
when deriving EntityEvent
#20104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one small thing I noticed!
@@ -60,13 +60,13 @@ impl Mine { | |||
} | |||
} | |||
|
|||
#[derive(Event, EntityEvent)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checking: was EntityEvent
purposefully removed here, or was this a mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On purpose :) ExplodeMines
is only used without an entity target. I presume EntityEvent
was derived by accident before
I still think that an associated type or const or something on a single trait is going to be better here in the end, but this will make that migration easier regardless and it's a nicer state for now. |
@tim-blackbird ping me when the merge conflicts I'm about to generate are resolved :) |
Objective
Since we are planning to remove the need to derive both
Event
andEntityEvent
in 0.17 either way, I'm choosing to do the easy thing in this PR so we can get the churn out of the way early.Context from discord. Related to, and will conflict slightly with #20101.
Solution
Event
as part of theEntityEvent
deriveEvent
derives that were made unnecessary