mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-13 15:18:07 +03:00
Added SteamFriends.OnOverlayBrowserProtocol
This commit is contained in:
parent
88c742d415
commit
6d0cfa1ec8
@ -34,6 +34,7 @@ namespace Steamworks
|
||||
Dispatch.Install<GameServerChangeRequested_t>( x => OnGameServerChangeRequested?.Invoke( x.ServerUTF8(), x.PasswordUTF8() ) );
|
||||
Dispatch.Install<GameLobbyJoinRequested_t>( x => OnGameLobbyJoinRequested?.Invoke( new Lobby( x.SteamIDLobby ), x.SteamIDFriend ) );
|
||||
Dispatch.Install<FriendRichPresenceUpdate_t>( x => OnFriendRichPresenceUpdate?.Invoke( new Friend( x.SteamIDFriend ) ) );
|
||||
Dispatch.Install<OverlayBrowserProtocolNavigation_t>( x => OnOverlayBrowserProtocol?.Invoke( x.RgchURIUTF8() ) );
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -77,6 +78,13 @@ namespace Steamworks
|
||||
/// </summary>
|
||||
public static event Action<Friend> OnFriendRichPresenceUpdate;
|
||||
|
||||
/// <summary>
|
||||
/// Dispatched when an overlay browser instance is navigated to a
|
||||
/// protocol/scheme registered by RegisterProtocolInOverlayBrowser()
|
||||
/// </summary>
|
||||
public static event Action<string> OnOverlayBrowserProtocol;
|
||||
|
||||
|
||||
static unsafe void OnFriendChatMessage( GameConnectedFriendChatMsg_t data )
|
||||
{
|
||||
if ( OnChatMessage == null ) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user