mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-28 15:45:29 +03:00
Merge branch 'master' of https://github.com/Facepunch/Facepunch.Steamworks
This commit is contained in:
commit
7c50db6997
@ -81,9 +81,9 @@ internal static void Shutdown()
|
|||||||
ConnectionInterfaces = null;
|
ConnectionInterfaces = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static void InstallEvents()
|
internal static void InstallEvents( bool server = false )
|
||||||
{
|
{
|
||||||
SteamNetConnectionStatusChangedCallback_t.Install( x => ConnectionStatusChanged( x ) );
|
SteamNetConnectionStatusChangedCallback_t.Install( x => ConnectionStatusChanged( x ), server );
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ConnectionStatusChanged( SteamNetConnectionStatusChangedCallback_t data )
|
private static void ConnectionStatusChanged( SteamNetConnectionStatusChangedCallback_t data )
|
||||||
|
@ -37,6 +37,7 @@ internal static ISteamGameServer Internal
|
|||||||
internal static void InstallEvents()
|
internal static void InstallEvents()
|
||||||
{
|
{
|
||||||
SteamInventory.InstallEvents();
|
SteamInventory.InstallEvents();
|
||||||
|
SteamNetworkingSockets.InstallEvents(true);
|
||||||
|
|
||||||
ValidateAuthTicketResponse_t.Install( x => OnValidateAuthTicketResponse?.Invoke( x.SteamID, x.OwnerSteamID, x.AuthSessionResponse ), true );
|
ValidateAuthTicketResponse_t.Install( x => OnValidateAuthTicketResponse?.Invoke( x.SteamID, x.OwnerSteamID, x.AuthSessionResponse ), true );
|
||||||
SteamServersConnected_t.Install( x => OnSteamServersConnected?.Invoke(), true );
|
SteamServersConnected_t.Install( x => OnSteamServersConnected?.Invoke(), true );
|
||||||
|
Loading…
Reference in New Issue
Block a user