mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Added Friends.ListenForFriendsMessages
This commit is contained in:
parent
28df21a19b
commit
7abd06a806
@ -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 );
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user