public FrTrainDevice(TrainSoundManager soundManager, TrainHandleManager handleManager, TrainControlManager controlManager) { this.soundManager = soundManager; this.handleManager = handleManager; this.controlManager = controlManager; }
public ClosedSignal(TrainSoundManager soundManager, TrainHandleManager handleManager, TrainControlManager controlManager) : base(soundManager,handleManager,controlManager) { globalTime = new OpenBveApi.Runtime.Time(0); time = new OpenBveApi.Runtime.Time(0); this.reset(); }
public KVB(TrainSoundManager soundManager, TrainHandleManager handleManager, TrainControlManager controlManager) : base(soundManager, handleManager, controlManager) { beepBeep = -1; enabled = false; newSpeedLimit = new Speed(-1); signalAspect = true; }
public Vacma(TrainSoundManager soundManager, TrainHandleManager handleManager, TrainControlManager controlManager) : base(soundManager, handleManager, controlManager) { time = new Time(0); securityTest = false; hold = false; vacmaHorn = -1; vacmaRing = -1; applyBreak = false; }
/// <summary>Is called when the plugin is loaded.</summary> /// <param name="properties">The properties supplied to the plugin on loading.</param> /// <returns>Whether the plugin was loaded successfully.</returns> public bool Load(LoadProperties properties) { soundManager = new TrainSoundManager(properties.PlaySound); cabControlManager = new TrainControlManager(ref properties); return true; }