StateToStatus() static private method

Convert an EPersonaState to a string.
static private StateToStatus ( EPersonaState state, bool pretty = false ) : string
state EPersonaState The state to convert.
pretty bool If true, capitalize the first letter of the string.
return string
Beispiel #1
0
		/// <summary>
		/// Get a string representation of the currently logged in user's <see cref="EPersonaState" />.
		/// </summary>
		/// <param name="pretty">If <c>true</c>, capitalize the first letter of the return value.</param>
		/// <returns>The user's <see cref="EPersonaState" /> in a string format.</returns>
		public static string GetStatus(bool pretty = false)
		{
			return SteamUtils.StateToStatus(GetState(), pretty);
		}