#[derive(Component)] { // Attributes available to this derive: #[storage] }
Custom derive macro for the Component trait.
Component
use specs::storage::VecStorage; #[derive(Component, Debug)] #[storage(VecStorage)] // This line is optional, defaults to `DenseVecStorage` struct Pos(f32, f32, f32);