///// <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); }
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); }
/// <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); }
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); }
/// <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); }
/// <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); } }
/// <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); } }
/// <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); } }
/// <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); } }
/// <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); }
/// <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); } }
/// <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); } }
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; } } }
/// <summary> /// Sets the downstream and pokes the next one along /// </summary> public virtual void DirectionOutput(ElectricalOIinheritance SourceInstance) { InputOutputFunctions.DirectionOutput(SourceInstance, InData); }