Trait legion::storage::ArchetypeSource
source · [−]pub trait ArchetypeSource {
type Filter: LayoutFilter;
fn filter(&self) -> Self::Filter;
fn layout(&mut self) -> EntityLayout;
}
Expand description
Defines a type which can describe the layout of an archetype.
Associated Types
type Filter: LayoutFilter
type Filter: LayoutFilter
A filter which finds existing archetypes which match the layout.
Required methods
fn layout(&mut self) -> EntityLayout
fn layout(&mut self) -> EntityLayout
Constructs a new entity layout.