private IEconomyRequestHandle addInventoryRequestHandle(SteamInventoryResult_t steamInventoryResult, EconomyRequestReadyCallback inventoryRequestReadyCallback) { SteamworksEconomyRequestHandle steamworksEconomyRequestHandle = new SteamworksEconomyRequestHandle(steamInventoryResult, inventoryRequestReadyCallback); this.steamworksEconomyRequestHandles.Add(steamworksEconomyRequestHandle); return(steamworksEconomyRequestHandle); }
private void onSteamInventoryResultReady(SteamInventoryResultReady_t callback) { SteamworksEconomyRequestHandle steamworksEconomyRequestHandle = this.findSteamworksEconomyRequestHandles(callback.m_handle); if (steamworksEconomyRequestHandle == null) { return; } IEconomyRequestResult inventoryRequestResult = this.createInventoryRequestResult(steamworksEconomyRequestHandle.steamInventoryResult); steamworksEconomyRequestHandle.triggerInventoryRequestReadyCallback(inventoryRequestResult); SteamInventory.DestroyResult(steamworksEconomyRequestHandle.steamInventoryResult); }