Steamworks.SteamGameServerInventory.ExchangeItems C# (CSharp) Method

ExchangeItems() public static method

ExchangeItems() is an atomic combination of item generation and consumption.

It can be used to implement crafting recipes or transmutations, or items which unpack

themselves into other items (e.g., a chest).

ExchangeItems requires a whitelist - you must define recipes (lists of the components

required for the exchange) on the target ItemDefinition. Exchanges that do not match

a recipe, or do not provide the required amounts, will fail.

public static ExchangeItems ( SteamInventoryResult_t &pResultHandle, SteamItemDef_t pArrayGenerate, uint punArrayGenerateQuantity, uint unArrayGenerateLength, SteamItemInstanceID_t pArrayDestroy, uint punArrayDestroyQuantity, uint unArrayDestroyLength ) : bool
pResultHandle SteamInventoryResult_t
pArrayGenerate SteamItemDef_t
punArrayGenerateQuantity uint
unArrayGenerateLength uint
pArrayDestroy SteamItemInstanceID_t
punArrayDestroyQuantity uint
unArrayDestroyLength uint
return bool
		public static bool ExchangeItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayGenerate, uint[] punArrayGenerateQuantity, uint unArrayGenerateLength, SteamItemInstanceID_t[] pArrayDestroy, uint[] punArrayDestroyQuantity, uint unArrayDestroyLength) {
			InteropHelp.TestIfAvailableGameServer();
			return NativeMethods.ISteamGameServerInventory_ExchangeItems(out pResultHandle, pArrayGenerate, punArrayGenerateQuantity, unArrayGenerateLength, pArrayDestroy, punArrayDestroyQuantity, unArrayDestroyLength);
		}