Exemple #1
0
        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);
        }
Exemple #2
0
 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);
 }