add doc
All checks were successful
Rust Checks / checks (push) Successful in 2m44s
Rust Checks / checks (pull_request) Successful in 2m40s

This commit is contained in:
CoCo_Sol 2024-03-30 19:28:11 +01:00
parent 80ffd17257
commit f044b9678a
2 changed files with 3 additions and 2 deletions

View file

@ -35,11 +35,11 @@ pub enum PlayerRank {
Player,
}
/// TODO
/// The event to start the game send by the admin.
#[derive(Event, Serialize, Deserialize)]
pub struct StartGame(pub StartMapGeneration);
/// TODO
/// A fonction that handle the start of the game.
fn start_game(
mut next_stats: ResMut<NextState<CurrentScene>>,
mut start_game_events: EventReader<Receive<StartGame>>,

View file

@ -87,6 +87,7 @@ fn lobby_ui(
});
}
/// Get the map sizes form a given number of players.
fn get_map_sizes(number_of_players: u64) -> Vec<u64> {
let mut result = Vec::with_capacity(6);