public override void Initialize() { if (!PowerSupply.RouteElectrified) { Trace.WriteLine("Warning: The route is not electrified. Electric driven trains will not run!"); } PowerSupply.Initialize(); base.Initialize(); // If DrvWheelWeight is not in ENG file, then calculate drivewheel weight freom FoA if (DrvWheelWeightKg == 0) // if DrvWheelWeightKg not in ENG file. { DrvWheelWeightKg = MassKG; // set Drive wheel weight to total wagon mass if not in ENG file } // Initialise water level in steam heat boiler if (CurrentLocomotiveSteamHeatBoilerWaterCapacityL == 0 && IsSteamHeatFitted) { if (MaximumSteamHeatBoilerWaterTankCapacityL != 0) { CurrentLocomotiveSteamHeatBoilerWaterCapacityL = MaximumSteamHeatBoilerWaterTankCapacityL; } else { CurrentLocomotiveSteamHeatBoilerWaterCapacityL = (float)Size.LiquidVolume.FromGallonUK(800.0f); } } }
public override void Initialize() { if (!PowerSupply.RouteElectrified) { Trace.WriteLine("Warning: The route is not electrified. Electric driven trains will not run!"); } PowerSupply.Initialize(); base.Initialize(); }
public override void Initialize() { if (!PowerSupply.RouteElectrified) { Trace.WriteLine("Warning: The route is not electrified. Electric driven trains will not run!"); } PowerSupply.Initialize(); base.Initialize(); // If DrvWheelWeight is not in ENG file, then calculate drivewheel weight freom FoA if (DrvWheelWeightKg == 0) // if DrvWheelWeightKg not in ENG file. { DrvWheelWeightKg = MassKG; // set Drive wheel weight to total wagon mass if not in ENG file } }