Trait dces::entity::EntityStore
source · [−]pub trait EntityStore {
fn register_entity(&mut self, entity: impl Into<Entity>);
fn remove_entity(&mut self, entity: impl Into<Entity>);
}
Expand description
This trait is used to define a custom store for entities. A entity container is used for entity iteration inside of the system’s run methods.
Required methods
fn register_entity(&mut self, entity: impl Into<Entity>)
fn register_entity(&mut self, entity: impl Into<Entity>)
Registers the give ‘entity’.
fn remove_entity(&mut self, entity: impl Into<Entity>)
fn remove_entity(&mut self, entity: impl Into<Entity>)
Removes the given ‘entity’.