Add resources system #111

Merged
CoCo_Sol merged 6 commits from add-resources-system into main 2024-04-06 11:24:35 +00:00
Showing only changes of commit 5f9efa3873 - Show all commits

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 {