Trait legion::storage::Component[][src]

pub trait Component: 'static + Sized + Send + Sync {
    type Storage: for<'a> ComponentStorage<'a, Self>;
}

A marker trait for all types which can be attached to an entity.

This trait has a blanket impl for all applicable types.

Associated Types

type Storage: for<'a> ComponentStorage<'a, Self>[src]

The storage type required to hold all instances of this component in a world.

Loading content...

Implementors

impl<T: 'static + Sized + Send + Sync> Component for T[src]

Loading content...