Struct specs::storage::TrackChannels
[−]
[src]
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
[src]
pub fn new() -> Self
[src]
Creates a new structure that holds all types of component modification events.