Function de_connector_lib::game::startup
source · pub(crate) async fn startup(
clients: Clients,
socket: Socket,
owner: SocketAddr,
max_players: Player
)
Expand description
Startup game network server communicating via net
.
§Arguments
-
clients
- global clients tracker. -
socket
- socket to use for the game server. -
owner
- address of the creator of the game. This client will be automatically added to the game as if they sent [de_messages::ToGame::Join
]. -
max_players
- maximum number of clients which may connect to the game at the same time