generated from tipragot/rust
Rename CurrentScene to Scene to be more generic #109
|
@ -11,9 +11,9 @@ pub mod networking;
|
||||||
pub mod scenes;
|
pub mod scenes;
|
||||||
pub mod ui;
|
pub mod ui;
|
||||||
|
|
||||||
/// The current scene of the game.
|
/// A scene of the game.
|
||||||
#[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Hash, States)]
|
#[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Hash, States)]
|
||||||
pub enum CurrentScene {
|
pub enum Scene {
|
||||||
/// When we are in the main menu.
|
/// When we are in the main menu.
|
||||||
#[default]
|
#[default]
|
||||||
Menu,
|
Menu,
|
||||||
|
@ -25,6 +25,9 @@ pub enum CurrentScene {
|
||||||
Game,
|
Game,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The current scene of the game.
|
||||||
|
pub type CurrentScene = Scene;
|
||||||
|
|
||||||
/// A player in the game.
|
/// A player in the game.
|
||||||
#[derive(Serialize, Deserialize, Clone, Debug, Component, Resource, PartialEq, Eq, Hash)]
|
#[derive(Serialize, Deserialize, Clone, Debug, Component, Resource, PartialEq, Eq, Hash)]
|
||||||
pub struct Player {
|
pub struct Player {
|
||||||
|
|
Loading…
Reference in a new issue