OnInventoryUpdated passes the InventoryResult

This commit is contained in:
Garry Newman 2019-05-08 13:01:28 +01:00
parent 49bb3644bd
commit 05e12c32e1

View File

@ -45,10 +45,12 @@ private static void InventoryUpdated( SteamInventoryFullUpdate_t x )
var r = new InventoryResult( x.Handle, false );
Items = r.GetItems( false );
OnInventoryUpdated?.Invoke( x.Handle );
OnInventoryUpdated?.Invoke( r );
r.Dispose();
}
public static event Action<int> OnInventoryUpdated;
public static event Action<InventoryResult> OnInventoryUpdated;
public static event Action OnDefinitionsUpdated;
public static event Action OnServerDefinitionsUpdated;