Пример #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);
        }
Пример #2
0
 public ScriptedDualModePowerSupply(MSTSElectricLocomotive locomotive) :
     base(locomotive)
 {
     CircuitBreaker      = new ScriptedCircuitBreaker(this);
     TractionCutOffRelay = new ScriptedTractionCutOffRelay(this);
 }
Пример #3
0
 public void Copy(ScriptedCircuitBreaker other)
 {
     ScriptName = other.ScriptName;
     State      = other.State;
     DelayS     = other.DelayS;
 }
Пример #4
0
 public ScriptedElectricPowerSupply(MSTSLocomotive locomotive) :
     base(locomotive)
 {
     CircuitBreaker = new ScriptedCircuitBreaker(this);
 }