From 69ccefd6011f40c94b5c49ce87bc3f4e51528e01 Mon Sep 17 00:00:00 2001 From: CoCo_Sol007 Date: Thu, 4 Apr 2024 21:19:56 +0000 Subject: [PATCH] Rename CurrentScene to Scene to be more generic (#109) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes: #98 Reviewed-on: https://git.tipragot.fr/fish-cannard/border-wars/pulls/109 Reviewed-by: Raphaƫl Co-authored-by: CoCo_Sol007 Co-committed-by: CoCo_Sol007 --- crates/border-wars/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/border-wars/src/lib.rs b/crates/border-wars/src/lib.rs index fc115d4..366b111 100644 --- a/crates/border-wars/src/lib.rs +++ b/crates/border-wars/src/lib.rs @@ -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 {