[−][src]Derive Macro specs_derive::Component
#[derive(Component)]
{
// Attributes available to this derive:
#[storage]
}Custom derive macro for the Component trait.
Example
ⓘThis example is not tested
use specs::storage::VecStorage; #[derive(Component, Debug)] #[storage(VecStorage)] // This line is optional, defaults to `DenseVecStorage` struct Pos(f32, f32, f32);