Exemple #1
0
            /// <summary>
            /// Called to finalize any changes made using SetProperty
            /// </summary>
            public bool SubmitProperties()
            {
                if (updateHandle == 0)
                {
                    throw new Exception("SubmitProperties called without updating properties");
                }

                try
                {
                    SteamNative.SteamInventoryResult_t result = -1;

                    if (!Inventory.inventory.SubmitUpdateProperties(updateHandle, ref result))
                    {
                        return(false);
                    }

                    Inventory.inventory.DestroyResult(result);

                    return(true);
                }
                finally
                {
                    updateHandle = 0;
                }
            }
Exemple #2
0
            private void UpdatingProperties()
            {
                if (updateHandle != 0)
                {
                    return;
                }

                updateHandle = Inventory.inventory.StartUpdateProperties();
            }
            private void UpdatingProperties()
            {
                if (!Inventory.EnableItemProperties)
                {
                    throw new InvalidOperationException("Item properties are disabled.");
                }

                if (updateHandle != 0)
                {
                    return;
                }

                updateHandle = Inventory.inventory.StartUpdateProperties();
            }