Beispiel #1
0
 /// <summary>
 /// Inputs a current from a device, with the supply
 /// </summary>
 public virtual void ElectricityInput(float Current, GameObject SourceInstance, ElectricalOIinheritance ComingFrom)
 {
     if (Logall)
     {
         Logger.Log("this > " + this + "ElectricityInput, Current > " + Current + " SourceInstance  > " + SourceInstance + " ComingFrom > " + ComingFrom, Category.Electrical);
     }
     InputOutputFunctions.ElectricityInput(Current, SourceInstance, ComingFrom, this);
 }
Beispiel #2
0
    public override void ElectricityInput(VIRCurrent Current,
                                          ElectricalOIinheritance SourceInstance,
                                          IntrinsicElectronicData ComingFrom)
    {
        Current = InData.ControllingDevice.ModifyElectricityInput(Current, SourceInstance, ComingFrom);

        if (Logall)
        {
            Logger.Log("this > " + this + "ElectricityInput, Current > " + Current + " SourceInstance  > " + SourceInstance + " ComingFrom > " + ComingFrom, Category.Electrical);
        }
        InputOutputFunctions.ElectricityInput(Current, SourceInstance, ComingFrom, InData);
    }
 /// <summary>
 /// Inputs a current from a device, with the supply
 /// </summary>
 public virtual void ElectricityInput(VIRCurrent Current,
                                      ElectricalOIinheritance SourceInstance,
                                      IntrinsicElectronicData ComingFrom)
 {
     if (Logall)
     {
         Logger.Log("this > " + this
                    + "ElectricityInput, Current > " + Current
                    + " SourceInstance  > " + SourceInstance
                    + " ComingFrom > " + ComingFrom, Category.Electrical);
     }
     InputOutputFunctions.ElectricityInput(Current, SourceInstance, ComingFrom, InData);
 }
 /// <summary>
 /// Inputs a current from a device, with the supply
 /// </summary>
 public virtual void ElectricityInput(VIRCurrent Current,
                                      ElectricalOIinheritance SourceInstance,
                                      IntrinsicElectronicData ComingFrom)
 {
     if (Present != null)
     {
         Present.ElectricityInput(Current, SourceInstance, ComingFrom);
     }
     else
     {
         InputOutputFunctions.ElectricityInput(Current, SourceInstance, ComingFrom, this);
     }
 }
Beispiel #5
0
 public void ElectricityInput(int tick, float Current, GameObject SourceInstance, IElectricityIO ComingFrom)
 {
     Current = RelatedDevice.ModifyElectricityInput(tick, Current, SourceInstance, ComingFrom);
     InputOutputFunctions.ElectricityInput(tick, Current, SourceInstance, ComingFrom, this);
 }
Beispiel #6
0
 public void ElectricityInput(int tick, float Current, GameObject SourceInstance, IElectricityIO ComingFrom)
 {
     InputOutputFunctions.ElectricityInput(tick, Current, SourceInstance, ComingFrom, this);
 }
Beispiel #7
0
 public override void ElectricityInput(float Current, GameObject SourceInstance, ElectricalOIinheritance ComingFrom)
 {
     Current = InData.ControllingDevice.ModifyElectricityInput(Current, SourceInstance, ComingFrom);
     InputOutputFunctions.ElectricityInput(Current, SourceInstance, ComingFrom, this);
 }
Beispiel #8
0
 public virtual void ElectricityInput(float Current, GameObject SourceInstance, IElectricityIO ComingFrom)
 {
     InputOutputFunctions.ElectricityInput(Current, SourceInstance, ComingFrom, this);
 }