Derive Macro Component

Source
#[derive(Component)]
Expand description

Implements Component for the type.

ยงExamples

use my_ecs::prelude::*;

// Zero-sized marker component.
#[derive(Component)]
struct Ca;

#[derive(Component)]
struct Cb(u8);

#[derive(Component)]
struct Cc {
    vel: (f32, f32, f32),
    acc: (f32, f32, f32),
}