use bevy_ecs::component::Component; use super::vertex::Vertex2D; #[derive(Component)] pub struct Mesh2D { pub vertices: Vec, } impl Mesh2D { pub fn new(vertices: Vec) -> Self { Self { vertices } } }