public static onContainerUpdated ( |
||
container | ||
return | void |
public static void onContainerUpdated(SSTUVolumeContainer container)
{
int len = containerUpdatedCallbacks.Count;
for (int i = 0; i < len; i++)
{
containerUpdatedCallbacks[i].Invoke(container);
}
}
/// <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); }