use bevy::prelude::*; // Define the player component #[derive(Component)] pub struct Player { pub movement_speed: f32, pub rotation_speed: f32, pub health: f32, pub health_max: f32, pub stamina: f32, pub stamina_max: f32, pub mana: f32, pub mana_max: f32, } // Define the attacking component #[derive(Component)] pub struct Attack { pub velocity: f32, pub damage: f32, } // Define the player movement system pub fn movement( time: Res