public void PowerUpdateResistanceChange() { RelatedDevice.PowerUpdateResistanceChange(); RelatedDevice.PowerUpdateResistanceChange(); foreach (KeyValuePair <IElectricityIO, HashSet <PowerTypeCategory> > Supplie in RelatedDevice.Data.ResistanceToConnectedDevices) { if (Supplie.Value.Contains(PowerTypeCategory.StandardCable)) { RelatedDevice.ResistanceInput(1.11111111f, Supplie.Key.GameObject(), null); ElectricalSynchronisation.NUCurrentChange.Add(Supplie.Key.InData.ControllingUpdate); } } }
public virtual void PowerUpdateResistanceChange() { powerSupply.PowerUpdateResistanceChange(); foreach (KeyValuePair <ElectricalOIinheritance, HashSet <PowerTypeCategory> > Supplie in powerSupply.Data.ResistanceToConnectedDevices) { //Logger.Log("4"); powerSupply.ResistanceInput(1.11111111f, Supplie.Key.GameObject(), null); ElectricalSynchronisation.NUCurrentChange.Add(Supplie.Key.InData.ControllingUpdate); } _PowerUpdateResistanceChange(); }
public void PowerUpdateResistanceChange() { RelatedDevice.PowerUpdateResistanceChange(); }