From 6b9b7da34b563795e0b629eb8c2357946f8eb9b3 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Sat, 18 May 2019 12:04:43 +0100 Subject: [PATCH] Fixed SteamInventory not getting events on server --- Facepunch.Steamworks/SteamServer.cs | 3 +++ Generator/SteamApiDefinition.cs | 1 + 2 files changed, 4 insertions(+) diff --git a/Facepunch.Steamworks/SteamServer.cs b/Facepunch.Steamworks/SteamServer.cs index 2fe6197..e44723f 100644 --- a/Facepunch.Steamworks/SteamServer.cs +++ b/Facepunch.Steamworks/SteamServer.cs @@ -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(); } diff --git a/Generator/SteamApiDefinition.cs b/Generator/SteamApiDefinition.cs index 7d1ffbb..fa159df 100644 --- a/Generator/SteamApiDefinition.cs +++ b/Generator/SteamApiDefinition.cs @@ -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" ) ) )