Beispiel #1
0
        public void Copy(Pantographs pantographs)
        {
            List.Clear();

            foreach (Pantograph pantograph in pantographs.List)
            {
                List.Add(new Pantograph(Wagon));
                List.Last().Copy(pantograph);
            }
        }
Beispiel #2
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);
        }