Trait legion::EntityStore[][src]

pub trait EntityStore {
    fn id(&self) -> WorldId;
fn entry_ref(
        &self,
        entity: Entity
    ) -> Result<EntryRef<'_>, EntityAccessError>;
fn entry_mut(
        &mut self,
        entity: Entity
    ) -> Result<EntryMut<'_>, EntityAccessError>;
fn get_component_storage<V: for<'b> View<'b>>(
        &self
    ) -> Result<StorageAccessor<'_>, EntityAccessError>; }
Expand description

The EntityStore trait abstracts access to entity data as required by queries for both World and SubWorld

Required methods

Returns the world’s unique ID.

Returns an entity entry which can be used to access entity metadata and components.

Returns a mutable entity entry which can be used to access entity metadata and components.

Returns a component storage accessor for component types declared in the specified View.

Implementors