Added SteamFriends.OnOverlayBrowserProtocol

This commit is contained in:
Garry Newman 2020-08-18 11:36:50 +01:00
parent 88c742d415
commit 6d0cfa1ec8

View File

@ -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;