Equality compare InventoryItem (probably need to do this to every struct)

This commit is contained in:
Garry Newman 2019-05-08 21:15:20 +01:00
parent f65cfecc64
commit 360645962f

View File

@ -131,5 +131,8 @@ namespace Steamworks
public InventoryItem Item;
public int Quantity;
}
public static bool operator ==( InventoryItem a, InventoryItem b ) => a._id == b._id;
public static bool operator !=( InventoryItem a, InventoryItem b ) => a._id != b._id;
}
}