SSTUTools.SSTUModInterop.onContainerUpdated C# (CSharp) Méthode

onContainerUpdated() public static méthode

public static onContainerUpdated ( SSTUVolumeContainer container ) : void
container SSTUVolumeContainer
Résultat void
        public static void onContainerUpdated(SSTUVolumeContainer container)
        {
            int len = containerUpdatedCallbacks.Count;
            for (int i = 0; i < len; i++)
            {
                containerUpdatedCallbacks[i].Invoke(container);
            }
        }

Usage Example

Exemple #1
0
        /// <summary>
        /// Update the resources for the part from the resources in the currently configured containers
        /// </summary>
        private void updateTankResources()
        {
            SSTUResourceList list = new SSTUResourceList();
            int len = containers.Length;

            for (int i = 0; i < len; i++)
            {
                containers[i].getResources(list);
            }
            list.setResourcesToPart(part);
            updateMassAndCost();
            SSTUStockInterop.fireEditorUpdate();
            SSTUModInterop.onContainerUpdated(this);
        }
All Usage Examples Of SSTUTools.SSTUModInterop::onContainerUpdated