Beispiel #1
0
 public Player(int id, string name, Socket socket)
 {
     this.id         = id;
     this.name       = name;
     playerConnector = new PlayerConnector(socket);
     playerConnector.GetEncestorByReference(this);
 }
Beispiel #2
0
 public void Conect(Socket socket)
 {
     playerConnector = playerConnector ?? new PlayerConnector(socket);
     playerConnector.GetEncestorByReference(this);
 }