McsCodecGloss

Trait McsCodecGloss 

Source
pub trait McsCodecGloss {
    // Required methods
    fn from_scene(scene: &Scene) -> Self;
    fn to_entity_builders(&mut self, with_colors: bool) -> Vec<EntityBuilder>;
    fn insert_into_scene(&mut self, scene: &mut Scene, with_colors: bool);
}
Expand description

creates a Vec<gloss_hecs::EntityBuilder> from the McsCodec

Required Methods§

Source

fn from_scene(scene: &Scene) -> Self

Source

fn to_entity_builders(&mut self, with_colors: bool) -> Vec<EntityBuilder>

Source

fn insert_into_scene(&mut self, scene: &mut Scene, with_colors: bool)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl McsCodecGloss for McsCodec

Trait implementation for McsCodec

Source§

fn from_scene(scene: &Scene) -> Self

Source§

fn to_entity_builders(&mut self, with_colors: bool) -> Vec<EntityBuilder>

Source§

fn insert_into_scene(&mut self, scene: &mut Scene, with_colors: bool)

Implementors§