mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-14 15:48:06 +03:00
Fixed SteamInventory not getting events on server
This commit is contained in:
parent
7c53fc580d
commit
6b9b7da34b
@ -36,6 +36,8 @@ namespace Steamworks
|
|||||||
|
|
||||||
internal static void InstallEvents()
|
internal static void InstallEvents()
|
||||||
{
|
{
|
||||||
|
SteamInventory.InstallEvents();
|
||||||
|
|
||||||
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 );
|
||||||
SteamServerConnectFailure_t.Install( x => OnSteamServerConnectFailure?.Invoke(), true );
|
SteamServerConnectFailure_t.Install( x => OnSteamServerConnectFailure?.Invoke(), true );
|
||||||
@ -129,6 +131,7 @@ namespace Steamworks
|
|||||||
ShutdownInterfaces();
|
ShutdownInterfaces();
|
||||||
SteamNetworkingUtils.Shutdown();
|
SteamNetworkingUtils.Shutdown();
|
||||||
SteamNetworkingSockets.Shutdown();
|
SteamNetworkingSockets.Shutdown();
|
||||||
|
SteamInventory.Shutdown();
|
||||||
|
|
||||||
SteamGameServer.Shutdown();
|
SteamGameServer.Shutdown();
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,7 @@ namespace Generator
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
// 4/8 packing is irrevant to these classes
|
||||||
if ( Name.Contains( "MatchMakingKeyValuePair_t" ) ) return true;
|
if ( Name.Contains( "MatchMakingKeyValuePair_t" ) ) return true;
|
||||||
|
|
||||||
if ( Fields.Any( x => x.Type.Contains( "CSteamID" ) ) )
|
if ( Fields.Any( x => x.Type.Contains( "CSteamID" ) ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user