Merge branch 'add-resources-system' of https://git.tipragot.fr/fish-cannard/border-wars into add-resources-system
All checks were successful
Rust Checks / checks (push) Successful in 2m44s
Rust Checks / checks (pull_request) Successful in 2m11s

This commit is contained in:
CoCo_Sol 2024-04-05 12:47:21 +02:00
commit 84283bd6ec

View file

@ -12,9 +12,9 @@ pub mod resources;
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,
@ -26,6 +26,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 {