コード例 #1
0
ファイル: FluidClient.cs プロジェクト: AustinJGreen/Fluid
        /// <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);
        }
コード例 #2
0
ファイル: FluidClient.cs プロジェクト: AustinJGreen/Fluid
        /// <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);
        }