Trait bevy_yoleck::prelude::YoleckComponent

source ·
pub trait YoleckComponent: Default + Clone + PartialEq + Component + Serialize + for<'a> Deserialize<'a> {
    const KEY: &'static str;
}
Expand description

A component that Yoleck will write to and read from .yol files.

Rather than being used for general ECS behavior definition, YoleckComponents should be used for spawning the actual components using populate systems.

Required Associated Constants§

source

const KEY: &'static str

Object Safety§

This trait is not object safe.

Implementors§

source§

impl YoleckComponent for Vpeol2dPosition

source§

const KEY: &'static str = "Vpeol2dPosition"

source§

impl YoleckComponent for Vpeol2dRotatation

source§

const KEY: &'static str = "Vpeol2dRotatation"

source§

impl YoleckComponent for Vpeol2dScale

source§

const KEY: &'static str = "Vpeol2dScale"

source§

impl YoleckComponent for Vpeol3dPosition

source§

const KEY: &'static str = "Vpeol3dPosition"

source§

impl YoleckComponent for Vpeol3dRotation

source§

const KEY: &'static str = "Vpeol3dRotation"

source§

impl YoleckComponent for Vpeol3dScale

source§

const KEY: &'static str = "Vpeol3dScale"