Struct amethyst::ecs::storage::TrackChannels [−]
pub struct TrackChannels {
pub modify: EventChannel<ModifiedFlag>,
pub insert: EventChannel<InsertedFlag>,
pub remove: EventChannel<RemovedFlag>,
}All three types of tracked modifications to components.
Fields
modify: EventChannel<ModifiedFlag>
Modifications event channel.
Note: This does not include insertions, only when a component is changed after it has been added to an entity.
insert: EventChannel<InsertedFlag>
Insertions event channel.
Note: Insertion events only occur when something inserts a component without there being a pre-existing component. If there is a pre-existing component for an entity then it will fire a modification event.
remove: EventChannel<RemovedFlag>
Removed event channel.
Methods
impl TrackChannels
impl TrackChannelspub fn new() -> TrackChannels
pub fn new() -> TrackChannelsCreates a new structure that holds all types of component modification events.
Trait Implementations
impl Default for TrackChannels
impl Default for TrackChannelsfn default() -> TrackChannels
fn default() -> TrackChannelsReturns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for TrackChannels
impl Send for TrackChannelsimpl Sync for TrackChannels
impl Sync for TrackChannels