mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-27 14:08:06 +03:00
Fixed SteamFriends events not being hooked
This commit is contained in:
parent
4d98ea3d51
commit
5d9e4b5c0b
@ -19,11 +19,13 @@ namespace Steamworks
|
|||||||
SetInterface( server, new ISteamFriends( server ) );
|
SetInterface( server, new ISteamFriends( server ) );
|
||||||
|
|
||||||
richPresence = new Dictionary<string, string>();
|
richPresence = new Dictionary<string, string>();
|
||||||
|
|
||||||
|
InstallEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
static Dictionary<string, string> richPresence;
|
static Dictionary<string, string> richPresence;
|
||||||
|
|
||||||
internal static void InstallEvents()
|
internal void InstallEvents()
|
||||||
{
|
{
|
||||||
Dispatch.Install<PersonaStateChange_t>( x => OnPersonaStateChange?.Invoke( new Friend( x.SteamID ) ) );
|
Dispatch.Install<PersonaStateChange_t>( x => OnPersonaStateChange?.Invoke( new Friend( x.SteamID ) ) );
|
||||||
Dispatch.Install<GameRichPresenceJoinRequested_t>( x => OnGameRichPresenceJoinRequested?.Invoke( new Friend( x.SteamIDFriend), x.ConnectUTF8() ) );
|
Dispatch.Install<GameRichPresenceJoinRequested_t>( x => OnGameRichPresenceJoinRequested?.Invoke( new Friend( x.SteamIDFriend), x.ConnectUTF8() ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user