Rename CurrentScene to Scene to be more generic (#109)
All checks were successful
Rust Checks / checks (push) Successful in 2m11s

closes: #98
Reviewed-on: #109
Reviewed-by: Raphaël <r.lauray@outlook.fr>
Co-authored-by: CoCo_Sol007 <solois.corentin@gmail.com>
Co-committed-by: CoCo_Sol007 <solois.corentin@gmail.com>
This commit is contained in:
CoCo_Sol 2024-04-04 21:19:56 +00:00 committed by Raphaël
parent 773ba1cbd9
commit 69ccefd601

View file

@ -11,9 +11,9 @@ pub mod networking;
pub mod scenes;
pub mod ui;
/// The current scene of the game.
/// A scene of the game.
#[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Hash, States)]
pub enum CurrentScene {
pub enum Scene {
/// When we are in the main menu.
#[default]
Menu,
@ -25,6 +25,9 @@ pub enum CurrentScene {
Game,
}
/// The current scene of the game.
pub type CurrentScene = Scene;
/// A player in the game.
#[derive(Serialize, Deserialize, Clone, Debug, Component, Resource, PartialEq, Eq, Hash)]
pub struct Player {