Steamworks.SteamGameServerInventory.GenerateItems C# (CSharp) Method

GenerateItems() public static method

INVENTORY ASYNC MODIFICATION

GenerateItems() creates one or more items and then generates a SteamInventoryCallback_t

notification with a matching nCallbackContext parameter. This API is insecure, and could

be abused by hacked clients. This call is normally disabled unless you explicitly enable

"Development mode" on the Inventory Service section of the Steamworks website.

You should not enable this mode for a shipping game!

Note that Steam accounts that belong to the publisher group for your game are granted

an exception - as a developer, you may use this to generate and test items in your game.

If punArrayQuantity is not NULL, it should be the same length as pArrayItems and should

describe the quantity of each item to generate.

public static GenerateItems ( SteamInventoryResult_t &pResultHandle, SteamItemDef_t pArrayItemDefs, uint punArrayQuantity, uint unArrayLength ) : bool
pResultHandle SteamInventoryResult_t
pArrayItemDefs SteamItemDef_t
punArrayQuantity uint
unArrayLength uint
return bool
		public static bool GenerateItems(out SteamInventoryResult_t pResultHandle, SteamItemDef_t[] pArrayItemDefs, uint[] punArrayQuantity, uint unArrayLength) {
			InteropHelp.TestIfAvailableGameServer();
			return NativeMethods.ISteamGameServerInventory_GenerateItems(out pResultHandle, pArrayItemDefs, punArrayQuantity, unArrayLength);
		}