Trait rin::ecs::component::NToOneComponent[][src]

pub trait NToOneComponent<'a>: 'static + Component + Deref<Target = Entity> { }

N to One components are just references to other entities.

That way several entities can have the same components in common.

#[derive(NToOneComponent, Debug)]
struct ComponentRef(Entity);

Automatically implements NToOneComponent and can be used with ReadRef and Ref.

Implementors

impl<'c> NToOneComponent<'c> for SkeletonRef[src]

impl<'c> NToOneComponent<'c> for GeometryRef[src]

impl<'c> NToOneComponent<'c> for GpuDebugGeometryRef[src]

impl<'c> NToOneComponent<'c> for GpuGeometryRef[src]

Loading content...