Trait legion::storage::ArchetypeSource[][src]

pub trait ArchetypeSource {
    type Filter: LayoutFilter;
    fn filter(&self) -> Self::Filter;
fn layout(&mut self) -> EntityLayout; }

Defines a type which can describe the layout of an archetype.

Associated Types

type Filter: LayoutFilter[src]

A filter which finds existing archetypes which match the layout.

Loading content...

Required methods

fn filter(&self) -> Self::Filter[src]

Returns the archetype source’s filter.

fn layout(&mut self) -> EntityLayout[src]

Constructs a new entity layout.

Loading content...

Implementors

Loading content...