mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-28 06:28:08 +03:00
Equality compare InventoryItem (probably need to do this to every struct)
This commit is contained in:
parent
f65cfecc64
commit
360645962f
@ -131,5 +131,8 @@ namespace Steamworks
|
|||||||
public InventoryItem Item;
|
public InventoryItem Item;
|
||||||
public int Quantity;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user