コード例 #1
0
        private IEconomyRequestHandle addInventoryRequestHandle(SteamInventoryResult_t steamInventoryResult, EconomyRequestReadyCallback inventoryRequestReadyCallback)
        {
            SteamworksEconomyRequestHandle steamworksEconomyRequestHandle = new SteamworksEconomyRequestHandle(steamInventoryResult, inventoryRequestReadyCallback);

            this.steamworksEconomyRequestHandles.Add(steamworksEconomyRequestHandle);
            return(steamworksEconomyRequestHandle);
        }
コード例 #2
0
        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);
        }