/// <summary> /// Loads the player object /// </summary> public PlayerObject LoadMyPlayerObject() { LobbyConnection lobbyConnection = GetLobbyConnection().Join(); if (lobbyConnection != null) { PlayerObject playerObject = lobbyConnection.GetPlayerObject(); lobbyConnection.Disconnect(); return(playerObject); } return(null); }
/// <summary> /// Loads a profile /// </summary> /// <param name="username">The username</param> public Profile LoadProfile(string username) { LobbyConnection lobbyConnection = GetLobbyConnection().Join(); if (lobbyConnection != null) { Profile profile = lobbyConnection.GetProfile(username); lobbyConnection.Disconnect(); return(profile); } return(null); }