-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 by Bors] - Add a wrapper around Entity
for RemovedComponents
#7503
Conversation
@@ -19,14 +19,18 @@ use std::{ | |||
option, | |||
}; | |||
|
|||
/// Wrapper around a [`ManualEventReader<Entity>`] so that we | |||
/// Wrapper around [`Entity`] for [`RemovedComponents`]. |
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.
Can we improve these docs? Maybe try to explain how they're used in events?
Ping @Aceeri for review, as this is modifying the code added by your PR :) |
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.
Much nicer!
bors r+ |
# Objective - Make the internals of `RemovedComponents` clearer ## Solution - Add a wrapper around `Entity`, used in `RemovedComponents` as `Events<RemovedComponentsEntity>` --- ## Changelog - `RemovedComponents` now internally uses an `Events<RemovedComponentsEntity>` instead of an `Events<Entity>`
Build failed: |
bors retry |
# Objective - Make the internals of `RemovedComponents` clearer ## Solution - Add a wrapper around `Entity`, used in `RemovedComponents` as `Events<RemovedComponentsEntity>` --- ## Changelog - `RemovedComponents` now internally uses an `Events<RemovedComponentsEntity>` instead of an `Events<Entity>`
Pull request successfully merged into main. Build succeeded:
|
Entity
for RemovedComponents
Entity
for RemovedComponents
Objective
RemovedComponents
clearerSolution
Entity
, used inRemovedComponents
asEvents<RemovedComponentsEntity>
Changelog
RemovedComponents
now internally uses anEvents<RemovedComponentsEntity>
instead of anEvents<Entity>