Derive Macro specs::Component[][src]

#[derive(Component)]
{
    // Attributes available to this derive:
    #[storage]
}
Expand description

Custom derive macro for the Component trait.

Example

use specs::storage::VecStorage;

#[derive(Component, Debug)]
#[storage(VecStorage)] // This line is optional, defaults to `DenseVecStorage`
struct Pos(f32, f32, f32);