Allow clients to create new rooms to play

This commit is contained in:
2023-02-19 18:03:01 +01:00
parent 831a5003c3
commit 7c8330465f
6 changed files with 302 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
use board_network::protocol::ServerMessage;
use futures::channel::mpsc::UnboundedSender;
#[derive(Debug)]
pub struct Player {
pub name: String,
pub score: u32,
pub ws: Option<UnboundedSender<ServerMessage>>,
}