Allow clients to create new rooms to play
This commit is contained in:
9
board-server/src/player.rs
Normal file
9
board-server/src/player.rs
Normal 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>>,
|
||||
}
|
Reference in New Issue
Block a user