public ServerPlayer(int id, IConnection connection) { this.id = id; conn = connection; }
public MpConnectionState(IConnection connection) { this.connection = connection; }
public void OnPeerDisconnected(NetPeer peer, DisconnectInfo disconnectInfo) { IConnection conn = peer.GetConnection(); server.OnDisconnected(conn, MpDisconnectReason.ClientLeft); }