Skip to content

Commit

Permalink
Derive Event for RemovedComponentEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
CatThingy committed Feb 5, 2023
1 parent edc5160 commit c8a6d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_ecs/src/removal_detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{
self as bevy_ecs,
component::{Component, ComponentId, ComponentIdFor},
entity::Entity,
event::{Events, ManualEventIterator, ManualEventReader},
event::{Event, Events, ManualEventIterator, ManualEventReader},
prelude::Local,
storage::SparseSet,
system::{ReadOnlySystemParam, SystemMeta, SystemParam},
Expand All @@ -21,7 +21,7 @@ use std::{

/// Wrapper around [`Entity`] for [`RemovedComponents`].
/// Internally, `RemovedComponents` uses these as an `Events<RemovedComponentEntity>`.
#[derive(Debug, Clone)]
#[derive(Event, Debug, Clone)]
pub struct RemovedComponentEntity(Entity);

impl From<RemovedComponentEntity> for Entity {
Expand Down

0 comments on commit c8a6d2a

Please sign in to comment.