pub fn new(uid: usize, stream: TcpStream) -> NetworkPlayer {
        let default_name = String::from("Uninitialized Player");

        NetworkPlayer {
            uid,
            stream,
            nickname: default_name.clone(),
            username: default_name,
            world: String::from(""),

            transform: Transform::default(),
        }
    }
/// Creates a network based player.
Creates a network based player.
Creates a network based player .
pub fn new(uid: usize, stream: TcpStream) -> NetworkPlayer {
        let default_name = String::from("Uninitialized Player");
        NetworkPlayer {
            uid,
            stream,
            nickname: default_name.clone(),
            username: default_name,
            world: String::from(""),
            transform: Transform::default(),
        }
    }
pub fn new ( uid : usize , stream : TcpStream ) -> NetworkPlayer { let default_name = String :: from ( " " ) ; NetworkPlayer { uid , stream , nickname : default_name . clone ( ) , username : default_name , world : String :: from ( " " ) , transform : Transform :: default ( ) , } }
Creates a network based player.
Creates a network based player .
uid
usize
stream
TcpStream
uid
usize
stream
TcpStream