Exemplo n.º 1
0
        /// <summary>
        /// Initialization when simulation starts with moving train
        /// <\summary>
        public virtual void InitializeMoving()
        {
            BatterySwitch.InitializeMoving();

            ElectricTrainSupplyState = PowerSupplyState.PowerOn;
            BatteryState             = PowerSupplyState.PowerOn;

            Script?.InitializeMoving();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initialization when simulation starts with moving train
        /// <\summary>
        public virtual void InitializeMoving()
        {
            BatterySwitch.InitializeMoving();
            MasterKey.InitializeMoving();
            ElectricTrainSupplySwitch.InitializeMoving();

            MainPowerSupplyState       = PowerSupplyState.PowerOn;
            AuxiliaryPowerSupplyState  = PowerSupplyState.PowerOn;
            ElectricTrainSupplyState   = PowerSupplyState.PowerOn;
            LowVoltagePowerSupplyState = PowerSupplyState.PowerOn;
            BatteryState = PowerSupplyState.PowerOn;
            if (Locomotive.IsLeadLocomotive())
            {
                CabPowerSupplyState = PowerSupplyState.PowerOn;
            }

            AbstractScript?.InitializeMoving();
        }