1 2 3 4 5 6 7 8 9 10 11 12 13 14
use bevy_ecs::prelude::Component; #[derive(Component, Clone, Debug, PartialEq)] #[non_exhaustive] pub enum Shape { Blank, Rect { width: f32, height: f32 }, } impl Default for Shape { fn default() -> Self { Shape::Blank } }