diff --git a/crates/border-wars/src/networking/mod.rs b/crates/border-wars/src/networking/mod.rs index a58c6ad..6bf9be0 100644 --- a/crates/border-wars/src/networking/mod.rs +++ b/crates/border-wars/src/networking/mod.rs @@ -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>, mut start_game_events: EventReader>, diff --git a/crates/border-wars/src/scenes/lobby.rs b/crates/border-wars/src/scenes/lobby.rs index 237bfb5..4a2f63b 100644 --- a/crates/border-wars/src/scenes/lobby.rs +++ b/crates/border-wars/src/scenes/lobby.rs @@ -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 { let mut result = Vec::with_capacity(6);