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