Пример #1
0
        public override void Update(double elapsedClockSeconds)
        {
            base.Update(elapsedClockSeconds);

            TractionCutOffRelay.Update(elapsedClockSeconds);

            Script?.Update(elapsedClockSeconds);
        }
Пример #2
0
        public override void Update(float elapsedClockSeconds)
        {
            base.Update(elapsedClockSeconds);

            CircuitBreaker.Update(elapsedClockSeconds);
            TractionCutOffRelay.Update(elapsedClockSeconds);

            Script?.Update(elapsedClockSeconds);
        }
Пример #3
0
 public void Update(double elapsedSeconds)
 {
     if (Locomotive.Train.TrainType == TrainType.Ai || Locomotive.Train.TrainType == TrainType.AiAutoGenerated ||
         Locomotive.Train.TrainType == TrainType.AiPlayerHosting)
     {
         State = TractionCutOffRelayState.Closed;
     }
     else
     {
         Script?.Update(elapsedSeconds);
     }
 }
Пример #4
0
 public void Update(float elapsedSeconds)
 {
     if (Locomotive.Train.TrainType == Train.TRAINTYPE.AI || Locomotive.Train.TrainType == Train.TRAINTYPE.AI_AUTOGENERATE ||
         Locomotive.Train.TrainType == Train.TRAINTYPE.AI_PLAYERHOSTING)
     {
         State = TractionCutOffRelayState.Closed;
     }
     else
     {
         Script?.Update(elapsedSeconds);
     }
 }