public ScriptedElectricPowerSupply(MSTSElectricLocomotive locomotive) : base(locomotive) { Locomotive = locomotive; Simulator = locomotive.Simulator; Pantographs = locomotive.Pantographs; State = PowerSupplyState.PowerOff; AuxiliaryState = PowerSupplyState.PowerOff; FilterVoltageV = 0; CircuitBreaker = new ScriptedCircuitBreaker(Locomotive); }
public ScriptedDualModePowerSupply(MSTSElectricLocomotive locomotive) : base(locomotive) { CircuitBreaker = new ScriptedCircuitBreaker(this); TractionCutOffRelay = new ScriptedTractionCutOffRelay(this); }
public void Copy(ScriptedCircuitBreaker other) { ScriptName = other.ScriptName; State = other.State; DelayS = other.DelayS; }
public ScriptedElectricPowerSupply(MSTSLocomotive locomotive) : base(locomotive) { CircuitBreaker = new ScriptedCircuitBreaker(this); }