Ejemplo n.º 1
0
        // Token: 0x06003066 RID: 12390 RVA: 0x0013E85C File Offset: 0x0013CC5C
        public void commitModifiedDynamicProps()
        {
            if (this.modifiedItems.Count < 1)
            {
                return;
            }
            SteamInventoryUpdateHandle_t handle = SteamInventory.StartUpdateProperties();

            foreach (ushort itemID in this.modifiedItems)
            {
                ulong value;
                if (Characters.getPackageForItemID(itemID, out value))
                {
                    EStatTrackerType type;
                    int num;
                    if (this.getStatTrackerValue(itemID, out type, out num))
                    {
                        string statTrackerPropertyName = Provider.provider.economyService.getStatTrackerPropertyName(type);
                        if (!string.IsNullOrEmpty(statTrackerPropertyName))
                        {
                            SteamInventory.SetProperty(handle, new SteamItemInstanceID_t(value), statTrackerPropertyName, (long)num);
                        }
                    }
                }
            }
            SteamInventory.SubmitUpdateProperties(handle, out Provider.provider.economyService.commitResult);
        }