Change doc
All checks were successful
Rust Checks / checks (push) Successful in 1m5s
Rust Checks / checks (pull_request) Successful in 1m4s

This commit is contained in:
CoCo_Sol 2024-02-10 00:41:17 +01:00
parent b374c9d210
commit 1e9041e477
2 changed files with 3 additions and 1 deletions

View file

@ -11,7 +11,7 @@ pub enum GameState {
#[default] #[default]
Menu, Menu,
/// When we are in the lobby waiting for players. /// When we are in the lobby waiting for players to join the game.
Lobby, Lobby,
/// When we play this wonderful game. /// When we play this wonderful game.

View file

@ -34,6 +34,7 @@ fn menu_ui(
if ui.button("Join").clicked() { if ui.button("Join").clicked() {
next_state.set(GameState::Game); next_state.set(GameState::Game);
// TODO: connect to the game
} }
}); });
@ -41,6 +42,7 @@ fn menu_ui(
if ui.button("Create new game").clicked() { if ui.button("Create new game").clicked() {
next_state.set(GameState::Lobby); next_state.set(GameState::Lobby);
// TODO: create a new game
} }
}); });
} }