/// <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); }
/// <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); }
/// <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 "<user> <emote>.</remarks> public void SendEmote(string emote) { byte[] em = SteamUtils.StringToByte(emote); SteamManager.Friends.SendMsgToFriend(SteamID, EChatEntryType.k_EChatEntryTypeEmote, em, em.Length); }