Trait rinecs::component::OneToNComponent [−][src]
pub trait OneToNComponent: 'static + Sized where
Self: Component,
Self::Storage: OneToNStorage<'a, Self>, { fn slice_type_name() -> &'static str; }
One to N Component trait.
Usually implemented using a derive attribute as in:
#[derive(OneToNComponent, Debug)] struct Geometry{}
Allows to add a slice of this type as an entity’s component.