Added Friends.ListenForFriendsMessages

This commit is contained in:
Garry Newman 2018-02-15 13:23:36 +00:00
parent 28df21a19b
commit 7abd06a806

View File

@ -43,6 +43,28 @@ internal Friends( Client c )
client.RegisterCallback<SteamNative.GameRichPresenceJoinRequested_t>( OnGameJoinRequested ); client.RegisterCallback<SteamNative.GameRichPresenceJoinRequested_t>( OnGameJoinRequested );
} }
private bool _listenForFriendsMessages;
/// <summary>
/// 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.
/// </summary>
public bool ListenForFriendsMessages
{
get
{
return _listenForFriendsMessages;
}
set
{
_listenForFriendsMessages = value;
client.native.friends.SetListenForFriendsMessages( value );
}
}
public delegate void JoinRequestedDelegate( SteamFriend friend, string connect ); public delegate void JoinRequestedDelegate( SteamFriend friend, string connect );
// //