Steamworks.SteamGameServerInventory.ConsumeItem C# (CSharp) Method

ConsumeItem() public static method

ConsumeItem() removes items from the inventory, permanently. They cannot be recovered.

Not for the faint of heart - if your game implements item removal at all, a high-friction

UI confirmation process is highly recommended. Similar to GenerateItems, punArrayQuantity

can be NULL or else an array of the same length as pArrayItems which describe the quantity

of each item to destroy.

public static ConsumeItem ( SteamInventoryResult_t &pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity ) : bool
pResultHandle SteamInventoryResult_t
itemConsume SteamItemInstanceID_t
unQuantity uint
return bool
		public static bool ConsumeItem(out SteamInventoryResult_t pResultHandle, SteamItemInstanceID_t itemConsume, uint unQuantity) {
			InteropHelp.TestIfAvailableGameServer();
			return NativeMethods.ISteamGameServerInventory_ConsumeItem(out pResultHandle, itemConsume, unQuantity);
		}