Ejemplo n.º 1
0
 public void ElectricityOutput(int tick, float Current, GameObject SourceInstance)
 {
     ElectricityFunctions.ElectricityOutput(tick, Current, SourceInstance, this);
     ActualCurrentChargeInWire = ElectricityFunctions.WorkOutActualNumbers(this);
     CurrentInWire             = ActualCurrentChargeInWire.Current;
     ActualVoltage             = ActualCurrentChargeInWire.Voltage;
     EstimatedResistance       = ActualCurrentChargeInWire.EstimatedResistant;
     //EstimatedResistance = ActualCurrentChargeInWire.Voltage;
 }
Ejemplo n.º 2
0
 public void ElectricityOutput(int tick, float Current, GameObject SourceInstance)
 {
     //Logger.Log(Current.ToString() + "yoree");
     //Logger.Log (CurrentInWire.ToString () + " How much current", Category.Electrical);
     ElectricityFunctions.ElectricityOutput(tick, Current, SourceInstance, this);
     CurrentInWire       = ActualCurrentChargeInWire.Current;
     ActualVoltage       = ActualCurrentChargeInWire.Voltage;
     EstimatedResistance = ActualCurrentChargeInWire.EstimatedResistant;
 }
Ejemplo n.º 3
0
    public void ElectricityOutput(int tick, float Current, GameObject SourceInstance)
    {
        Current = RelatedDevice.ModifyElectricityOutput(tick, Current, SourceInstance);

        //Logger.Log (CurrentInWire.ToString () + " How much current", Category.Electrical);
        if (Current != 0)
        {
            ElectricityFunctions.ElectricityOutput(tick, Current, SourceInstance, this);
        }
        ActualCurrentChargeInWire = ElectricityFunctions.WorkOutActualNumbers(this);
        CurrentInWire             = ActualCurrentChargeInWire.Current;
        ActualVoltage             = ActualCurrentChargeInWire.Voltage;
        EstimatedResistance       = ActualCurrentChargeInWire.EstimatedResistant;
    }