Skip to content

Commit

Permalink
Elaborate on ObserverSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
james-j-obrien committed Feb 20, 2024
1 parent c8df047 commit 84ff2c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_ecs/src/system/observer_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ pub trait ObserverSystem<E: 'static, B: Bundle>:

/// Implemented for [`SystemParam`] that can be used in [`Observer`] systems.
/// # Safety
/// Implementing types must ensure their implementation of [`SystemParam::get_param`] does not use `world` except as a [`DeferredWorld`]
/// Implementing types must ensure their implementation of [`SystemParam::get_param`] does not use `world` except as a [`DeferredWorld`]]
/// `apply_deferred` may also not be called, this trait can be merged with `SystemParam` if we promote these restrictions to that type
pub unsafe trait ObserverSystemParam: SystemParam {}

/// # Safety: `Query` can make no structural changes
Expand Down

0 comments on commit 84ff2c7

Please sign in to comment.