Fixed SteamInventory not getting events on server

This commit is contained in:
Garry Newman 2019-05-18 12:04:43 +01:00
parent 7c53fc580d
commit 6b9b7da34b
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,8 @@ namespace Steamworks
internal static void InstallEvents()
{
SteamInventory.InstallEvents();
ValidateAuthTicketResponse_t.Install( x => OnValidateAuthTicketResponse?.Invoke( x.SteamID, x.OwnerSteamID, x.AuthSessionResponse ), true );
SteamServersConnected_t.Install( x => OnSteamServersConnected?.Invoke(), true );
SteamServerConnectFailure_t.Install( x => OnSteamServerConnectFailure?.Invoke(), true );
@ -129,6 +131,7 @@ namespace Steamworks
ShutdownInterfaces();
SteamNetworkingUtils.Shutdown();
SteamNetworkingSockets.Shutdown();
SteamInventory.Shutdown();
SteamGameServer.Shutdown();
}

View File

@ -60,6 +60,7 @@ namespace Generator
{
get
{
// 4/8 packing is irrevant to these classes
if ( Name.Contains( "MatchMakingKeyValuePair_t" ) ) return true;
if ( Fields.Any( x => x.Type.Contains( "CSteamID" ) ) )