コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public void PowerUpdateResistanceChange()
 {
     RelatedDevice.PowerUpdateResistanceChange();
 }