|
@ -80,10 +80,3 @@ pub async fn join_room<EG: EntityGateway>(ship: &mut ShipServerState<EG>, id: Cl |
|
|
item: room_id,
|
|
|
item: room_id,
|
|
|
})).await.unwrap().for_each(drop);
|
|
|
})).await.unwrap().for_each(drop);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
pub async fn change_lobby<EG: EntityGateway>(ship: &mut ShipServerState<EG>, id: ClientId, lobby: u32) {
|
|
|
|
|
|
ship.handle(id, &RecvShipPacket::LobbySelect(LobbySelect{
|
|
|
|
|
|
menu: LOBBY_MENU_ID,
|
|
|
|
|
|
lobby: lobby,
|
|
|
|
|
|
})).await.unwrap().for_each(drop);
|
|
|
|
|
|
}
|
|
|
|