pub fn new(role: PlayerRole, username: String, icon: u8, client: &mut Client) -> Self {
        client.set_player(Player::new(role));
        Self {
            username,
            ready: false,
            icon,
        }
    }
/// Constructs a new room player instance
Constructs a new room player instance
Constructs a new room player instance
pub fn new(role: PlayerRole, username: String, icon: u8, client: &mut Client) -> Self {
        client.set_player(Player::new(role));
        Self {
            username,
            ready: false,
            icon,
        }
    }
pub fn new ( role : PlayerRole , username : String , icon : u8 , client : & mut Client ) -> Self { client . set_player ( Player :: new ( role ) ) ; Self { username , ready : false , icon , } }
Constructs a new room player instance
Constructs a new room player instance
role
PlayerRole
username
String
icon
u8
client
&mut Client