Update docstring
All checks were successful
Rust Checks / checks (push) Successful in 1m6s
Rust Checks / checks (pull_request) Successful in 1m3s

This commit is contained in:
CoCo_Sol 2024-02-10 00:23:52 +01:00
parent 52c9112585
commit 35c6636ce8
2 changed files with 3 additions and 4 deletions

View file

@ -9,11 +9,11 @@ pub mod menu;
/// The state of the game. /// The state of the game.
#[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Hash, States)] #[derive(Debug, Clone, Copy, Default, Eq, PartialEq, Hash, States)]
pub enum GameState { pub enum GameState {
/// The main menu. /// When we are in the main menu.
#[default] #[default]
Menu, Menu,
/// The lobby where the host will wait for other players to join. /// The lobby where the host will wait for other players to join.
Lobby, Lobby,
/// The game. /// When we play this wonderful game.
Game, Game,
} }

View file

@ -21,8 +21,7 @@ impl Plugin for MenuPlugin {
); );
} }
} }
/// Display a window, with a button to join a game and an input to enter /// Display the UI of the menu to host a game or join one.
/// TODO
fn menu_ui(mut ctx: EguiContexts, mut connection_string: Local<String>) { fn menu_ui(mut ctx: EguiContexts, mut connection_string: Local<String>) {
egui::CentralPanel::default().show(ctx.ctx_mut(), |ui| { egui::CentralPanel::default().show(ctx.ctx_mut(), |ui| {
ui.heading("Border Wars"); ui.heading("Border Wars");