Exemple #1
0
 ///// <summary>
 /////  Sets the upstream
 ///// </summary>
 public virtual void DirectionInput(ElectricalOIinheritance SourceInstance, IntrinsicElectronicData ComingFrom, CableLine PassOn = null)
 {
     if (Logall)
     {
         Logger.Log("this > " + this + "DirectionInput SourceInstance > " + SourceInstance + " ComingFrom > " + ComingFrom + "  PassOn > " + PassOn, Category.Electrical);
     }
     InputOutputFunctions.DirectionInput(SourceInstance, ComingFrom, InData);
 }
Exemple #2
0
 public override void ResistancyOutput(ResistanceWrap Resistance, ElectricalOIinheritance SourceInstance)
 {
     Resistance = InData.ControllingDevice.ModifyResistancyOutput(Resistance, SourceInstance);
     if (Logall)
     {
         Logger.Log("this > " + this + "ResistancyOutput, Resistance > " + Resistance + " SourceInstance  > " + SourceInstance, Category.Electrical);
     }
     InputOutputFunctions.ResistancyOutput(Resistance, SourceInstance, InData);
 }
Exemple #3
0
 /// <summary>
 /// Passes it on to the next cable
 /// </summary>
 public virtual void ResistancyOutput(ResistanceWrap Resistance, ElectricalOIinheritance SourceInstance)
 {
     if (Logall)
     {
         Logger.Log("this > " + this
                    + "ResistancyOutput, Resistance > " + Resistance
                    + " SourceInstance  > " + SourceInstance, Category.Electrical);
     }
     InputOutputFunctions.ResistancyOutput(Resistance, SourceInstance, InData);
 }
Exemple #4
0
 public override void ElectricityOutput(VIRCurrent Current,
                                        ElectricalOIinheritance SourceInstance)
 {
     Current = InData.ControllingDevice.ModifyElectricityOutput(Current, SourceInstance);
     if (Logall)
     {
         Logger.Log("this > " + this + "ElectricityOutput, Current > " + Current + " SourceInstance  > " + SourceInstance, Category.Electrical);
     }
     InputOutputFunctions.ElectricityOutput(Current, SourceInstance, InData);
 }
Exemple #5
0
 /// <summary>
 ///The function for out putting current into other nodes (Basically doing ElectricityInput On another one)
 /// </summary>
 public virtual void ElectricityOutput(VIRCurrent Current,
                                       ElectricalOIinheritance SourceInstance)
 {
     if (Logall)
     {
         Logger.Log("this > " + this
                    + "ElectricityOutput, Current > " + Current
                    + " SourceInstance  > " + SourceInstance, Category.Electrical);
     }
     InputOutputFunctions.ElectricityOutput(Current, SourceInstance, InData);
 }
Exemple #6
0
 /// <summary>
 /// Sets the downstream and pokes the next one along
 /// </summary>
 public virtual void DirectionOutput(ElectricalOIinheritance SourceInstance)
 {
     if (Present != null)
     {
         Present.DirectionOutput(SourceInstance);
     }
     else
     {
         InputOutputFunctions.DirectionOutput(SourceInstance, this);
     }
 }
Exemple #7
0
 /// <summary>
 ///  Sets the upstream
 /// </summary>
 public virtual void DirectionInput(ElectricalOIinheritance SourceInstance, IntrinsicElectronicData ComingFrom, CableLine PassOn = null)
 {
     if (Present != null)
     {
         Present.DirectionInput(SourceInstance, ComingFrom);
     }
     else
     {
         InputOutputFunctions.DirectionInput(SourceInstance, ComingFrom, this);
     }
 }
Exemple #8
0
 /// <summary>
 /// Passes it on to the next cable
 /// </summary>
 public virtual void ResistancyOutput(ResistanceWrap Resistance, ElectricalOIinheritance SourceInstance)
 {
     if (Present != null)
     {
         Present.ResistancyOutput(Resistance, SourceInstance);
     }
     else
     {
         InputOutputFunctions.ResistancyOutput(Resistance, SourceInstance, this);
     }
 }
Exemple #9
0
 /// <summary>
 ///The function for out putting current into other nodes (Basically doing ElectricityInput On another one)
 /// </summary>
 public virtual void ElectricityOutput(VIRCurrent Current,
                                       ElectricalOIinheritance SourceInstance)
 {
     if (Present != null)
     {
         Present.ElectricityOutput(Current, SourceInstance);
     }
     else
     {
         InputOutputFunctions.ElectricityOutput(Current, SourceInstance, this);
     }
 }
Exemple #10
0
 /// <summary>
 /// Pass resistance with GameObject of the Machine it is heading toward
 /// </summary>
 public virtual void ResistanceInput(ResistanceWrap Resistance,
                                     ElectricalOIinheritance SourceInstance,
                                     IntrinsicElectronicData ComingFrom)
 {
     if (Logall)
     {
         Logger.Log("this > " + this
                    + "ResistanceInput, Resistance > " + Resistance
                    + " SourceInstance  > " + SourceInstance
                    + " ComingFrom > " + ComingFrom, Category.Electrical);
     }
     InputOutputFunctions.ResistanceInput(Resistance, SourceInstance, ComingFrom, InData);
 }
Exemple #11
0
 /// <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);
 }
Exemple #12
0
 /// <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);
     }
 }
Exemple #13
0
 /// <summary>
 /// Pass resistance with GameObject of the Machine it is heading toward
 /// </summary>
 public virtual void ResistanceInput(ResistanceWrap Resistance,
                                     ElectricalOIinheritance SourceInstance,
                                     IntrinsicElectronicData ComingFrom)
 {
     if (Present != null)
     {
         Present.ResistanceInput(Resistance, SourceInstance, ComingFrom);
     }
     else
     {
         InputOutputFunctions.ResistanceInput(Resistance, SourceInstance, ComingFrom, this);
     }
 }
Exemple #14
0
        public void CircuitSearchLoop(ElectricalOIinheritance wire)
        {
            InputOutputFunctions.DirectionOutput(wire, wire.InData);
            while (true)
            {
                UesAlternativeDirectionWorkOnNextList = false;
                CircuitSearch(wire, _DirectionWorkOnNextList, _DirectionWorkOnNextListWait);

                UesAlternativeDirectionWorkOnNextList = true;
                CircuitSearch(wire, DirectionWorkOnNextList, DirectionWorkOnNextListWait);

                if (DirectionWorkOnNextList.Count <= 0 & DirectionWorkOnNextListWait.Count <= 0 &
                    _DirectionWorkOnNextList.Count <= 0 & _DirectionWorkOnNextListWait.Count <= 0)
                {
                    break;
                }
            }
        }
Exemple #15
0
 /// <summary>
 /// Sets the downstream and pokes the next one along
 /// </summary>
 public virtual void DirectionOutput(ElectricalOIinheritance SourceInstance)
 {
     InputOutputFunctions.DirectionOutput(SourceInstance, InData);
 }