public void Copy(Pantographs pantographs) { List.Clear(); foreach (Pantograph pantograph in pantographs.List) { List.Add(new Pantograph(Wagon)); List.Last().Copy(pantograph); } }
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); }