Beispiel #1
0
        public FrTrainDevice(TrainSoundManager soundManager,
		                      TrainHandleManager handleManager,
		                      TrainControlManager controlManager)
        {
            this.soundManager = soundManager;
            this.handleManager = handleManager;
            this.controlManager = controlManager;
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        public KVB(TrainSoundManager soundManager,
		            TrainHandleManager handleManager,
		            TrainControlManager controlManager)
            : base(soundManager, handleManager, controlManager)
        {
            beepBeep = -1;
            enabled = false;
            newSpeedLimit = new Speed(-1);
            signalAspect = true;
        }
Beispiel #4
0
        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;
        }
Beispiel #5
0
 /// <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;
 }