diff --git a/Facepunch.Steamworks/Client/Friends.cs b/Facepunch.Steamworks/Client/Friends.cs index 3c557b7..7a69c1d 100644 --- a/Facepunch.Steamworks/Client/Friends.cs +++ b/Facepunch.Steamworks/Client/Friends.cs @@ -43,6 +43,28 @@ namespace Facepunch.Steamworks client.RegisterCallback( OnGameJoinRequested ); } + private bool _listenForFriendsMessages; + + /// + /// Listens for Steam friends chat messages. + /// You can then show these chats inline in the game. For example with a Blizzard style chat message system or the chat system in Dota 2. + /// After enabling this you will receive callbacks when ever the user receives a chat message. + /// + public bool ListenForFriendsMessages + { + get + { + return _listenForFriendsMessages; + } + + set + { + _listenForFriendsMessages = value; + client.native.friends.SetListenForFriendsMessages( value ); + } + } + + public delegate void JoinRequestedDelegate( SteamFriend friend, string connect ); //