Trait legion::storage::ComponentSource [−][src]
pub trait ComponentSource: ArchetypeSource {
fn push_components<'a>(
&mut self,
writer: &mut ArchetypeWriter<'a>,
entities: impl Iterator<Item = Entity>
);
}
Expand description
Describes a type which can write entity components into a world.
Required methods
fn push_components<'a>(
&mut self,
writer: &mut ArchetypeWriter<'a>,
entities: impl Iterator<Item = Entity>
)
fn push_components<'a>(
&mut self,
writer: &mut ArchetypeWriter<'a>,
entities: impl Iterator<Item = Entity>
)
Writes components for new entities into an archetype.