ComponentFactory

Trait ComponentFactory 

Source
pub trait ComponentFactory: Send + Sync {
    // Required method
    fn insert(&self, world: &mut World, entity: Entity, value: &Value);
}
Expand description

All components must have a factory implementing this trait to be able created from a scene config

Required Methods§

Source

fn insert(&self, world: &mut World, entity: Entity, value: &Value)

Implementors§