[][src]Trait dces::entity::EntityStore

pub trait EntityStore {
    fn register_entity(&mut self, entity: impl Into<Entity>);
fn remove_entity(&mut self, entity: impl Into<Entity>); }

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>)

Registers the give 'entity'.

fn remove_entity(&mut self, entity: impl Into<Entity>)

Removes the given 'entity'.

Loading content...

Implementors

impl EntityStore for VecEntityStore[src]

Loading content...