public override void Update(double elapsedClockSeconds) { base.Update(elapsedClockSeconds); TractionCutOffRelay.Update(elapsedClockSeconds); Script?.Update(elapsedClockSeconds); }
public override void Update(float elapsedClockSeconds) { base.Update(elapsedClockSeconds); CircuitBreaker.Update(elapsedClockSeconds); TractionCutOffRelay.Update(elapsedClockSeconds); Script?.Update(elapsedClockSeconds); }
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); } }
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); } }