Static class providing various utilities for Steam components.
Ejemplo n.º 1
0
 /// <summary>
 /// Send a message to this friend.
 /// </summary>
 /// <param name="message">Message to send.</param>
 public void SendMessage(string message)
 {
     byte[] msg = SteamUtils.StringToByte(message);
     SteamManager.Friends.SendMsgToFriend(SteamID, EChatEntryType.k_EChatEntryTypeChatMsg, msg, msg.Length);
 }
Ejemplo n.º 2
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);
		}
Ejemplo n.º 3
0
 /// <summary>
 /// Send an emote to this friend.
 /// </summary>
 /// <param name="emote">Emote to send.</param>
 /// <remarks>This will appear in the target's chatlog as "&lt;user&gt; &lt;emote&gt;.</remarks>
 public void SendEmote(string emote)
 {
     byte[] em = SteamUtils.StringToByte(emote);
     SteamManager.Friends.SendMsgToFriend(SteamID, EChatEntryType.k_EChatEntryTypeEmote, em, em.Length);
 }