public void PowerNetworkUpdate() { ElectricityFunctions.WorkOutActualNumbers(Node.InData); UpPowerNetworkUpdate(); if (NodeControl != null) { NodeControl.PowerNetworkUpdate(); } }
public void PowerNetworkUpdate() { ElectricityFunctions.WorkOutActualNumbers(Node.InData); if (UpdateRequestDictionary.TryGetValue(ElectricalUpdateTypeCategory.PowerNetworkUpdate, out HashSet <ElectricalModuleTypeCategory> updateRequest)) { foreach (ElectricalModuleTypeCategory Module in updateRequest) { UpdateDelegateDictionary[Module].PowerNetworkUpdate(); } } if (NodeControl != null) { NodeControl.PowerNetworkUpdate(); } }