Trait legion::world::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
Required methods
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.
fn get_component_storage<V: for<'b> View<'b>>(
&self
) -> Result<StorageAccessor<'_>, EntityAccessError>
fn get_component_storage<V: for<'b> View<'b>>(
&self
) -> Result<StorageAccessor<'_>, EntityAccessError>
Returns a component storage accessor for component types declared in the specified View
.