bevy_compose

Trait IsChanged

source
pub trait IsChanged {
    type State<'w>: Send + 'static
       where Self: 'w;

    // Required methods
    fn reads(app: &mut App, type_ids: &mut Vec<ComponentId>);
    fn build<'w>(&'w self) -> Self::State<'w>;
    fn is_changed<'w>(&'w self, state: &'w mut Self::State<'w>) -> bool;
}

Required Associated Types§

source

type State<'w>: Send + 'static where Self: 'w

Required Methods§

source

fn reads(app: &mut App, type_ids: &mut Vec<ComponentId>)

source

fn build<'w>(&'w self) -> Self::State<'w>

source

fn is_changed<'w>(&'w self, state: &'w mut Self::State<'w>) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<D, F> IsChanged for Query<'_, '_, D, F>
where D: QueryData, F: QueryFilter, for<'w> <<D as QueryData>::ReadOnly as WorldQuery>::Item<'w>: Deref, for<'w> <<<D as QueryData>::ReadOnly as WorldQuery>::Item<'w> as Deref>::Target: Clone + PartialEq + Send + 'static,

source§

type State<'w> = Vec<<<<D as QueryData>::ReadOnly as WorldQuery>::Item<'w> as Deref>::Target> where Self: 'w

source§

fn reads(app: &mut App, type_ids: &mut Vec<ComponentId>)

source§

fn build<'w>(&'w self) -> Self::State<'w>

source§

fn is_changed<'w>(&'w self, state: &'w mut Self::State<'w>) -> bool

source§

impl<T: IsChanged> IsChanged for (T,)

source§

type State<'w> = <T as IsChanged>::State<'w> where Self: 'w

source§

fn reads(app: &mut App, type_ids: &mut Vec<ComponentId>)

source§

fn build<'w>(&'w self) -> Self::State<'w>

source§

fn is_changed<'w>(&'w self, state: &'w mut Self::State<'w>) -> bool

Implementors§