Skip to content

[Merged by Bors] - Make RemovedComponents mirror EventReaders api surface#7713

Closed
Aceeri wants to merge 4 commits intobevyengine:mainfrom
Aceeri:event-reader-removed-components
Closed

[Merged by Bors] - Make RemovedComponents mirror EventReaders api surface#7713
Aceeri wants to merge 4 commits intobevyengine:mainfrom
Aceeri:event-reader-removed-components

Conversation

@Aceeri
Copy link
Member

@Aceeri Aceeri commented Feb 16, 2023

Objective

  • RemovedComponents is just a thin wrapper around Events/ManualEventReader which is the same as an EventReader, so most usecases that of an EventReader will probably be useful for RemovedComponents too.

I was thinking of making a trait for this but I don't think it is worth the overhead currently.

Solution

  • Mirror the api surface of EventReader

@alice-i-cecile alice-i-cecile added A-ECS Entities, components, systems, and events C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Feb 17, 2023
@alice-i-cecile alice-i-cecile added this to the 0.10 milestone Feb 17, 2023
Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

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

bors r+

bors bot pushed a commit that referenced this pull request Feb 17, 2023
# Objective
- RemovedComponents is just a thin wrapper around Events/ManualEventReader which is the same as an EventReader, so most usecases that of an EventReader will probably be useful for RemovedComponents too.

I was thinking of making a trait for this but I don't think it is worth the overhead currently.

## Solution
- Mirror the api surface of EventReader
@bors bors bot changed the title Make RemovedComponents mirror EventReaders api surface [Merged by Bors] - Make RemovedComponents mirror EventReaders api surface Feb 17, 2023
@bors bors bot closed this Feb 17, 2023
@Aceeri Aceeri deleted the event-reader-removed-components branch February 17, 2023 04:25
myreprise1 pushed a commit to myreprise1/bevy that referenced this pull request Feb 18, 2023
# Objective
- RemovedComponents is just a thin wrapper around Events/ManualEventReader which is the same as an EventReader, so most usecases that of an EventReader will probably be useful for RemovedComponents too.

I was thinking of making a trait for this but I don't think it is worth the overhead currently.

## Solution
- Mirror the api surface of EventReader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ECS Entities, components, systems, and events C-Usability A targeted quality-of-life change that makes Bevy easier to use

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants