save
Some checks failed
Rust Checks / checks (push) Has been cancelled
Rust Checks / checks (pull_request) Successful in 2m20s

This commit is contained in:
CoCo_Sol 2024-03-31 00:16:58 +01:00
parent 4faf8b781d
commit c090fabbd5

View file

@ -19,7 +19,7 @@ impl Plugin for NetworkingPlugin {
fn build(&self, app: &mut App) {
app.add_plugins(NetworkPlugin::new("relay.cocosol.fr".to_string()))
.add_plugins(ConnectionPlugin)
.add_systems(Update, start_game)
.add_systems(Update, handle_start_game)
.add_network_event::<StartGame>()
.add_plugins(CheckConnectionPlugin);
}
@ -43,7 +43,7 @@ pub enum PlayerRank {
pub struct StartGame(pub StartMapGeneration);
/// A fonction that handle the start of the game.
fn start_game(
fn handle_start_game(
mut next_stats: ResMut<NextState<CurrentScene>>,
mut start_game_events: EventReader<Receive<StartGame>>,
mut start_map_generation_writer: EventWriter<StartMapGeneration>,