Exemplo n.º 1
0
 public HornBlowEvent(double TrackPositionDelta, HornTypes Type, bool TriggerOnce)
 {
     this.TrackPositionDelta = TrackPositionDelta;
     DontTriggerAnymore      = false;
     this.TriggerOnce        = TriggerOnce;
     this.Type = Type;
 }
Exemplo n.º 2
0
 /// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
 /// <param name="type">The type of horn.</param>
 internal override void HornBlow(HornTypes type)
 {
     if (this.Counter < TimeUntilBrake)
     {
         this.Counter = 0.0;
     }
 }
Exemplo n.º 3
0
 /// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
 /// <param name="type">The type of horn.</param>
 internal void HornBlow(HornTypes type)
 {
     foreach (Device device in this.Devices)
     {
         device.HornBlow(type);
     }
 }
Exemplo n.º 4
0
 /// <summary>警笛が扱われたときに呼び出されます。</summary>
 /// <param name="type">警笛のタイプ</param>
 public void HornBlow(HornTypes type)
 {
     foreach (IRuntime plugin in plugins_)
     {
         plugin.HornBlow(type);
     }
 }
Exemplo n.º 5
0
 internal override void HornBlow(HornTypes type)
 {
     try {
         Win32HornBlow((int)type);
     } catch (Exception ex) {
         base.LastException = ex;
         throw;
     }
 }
Exemplo n.º 6
0
 public void HornBlow(HornTypes type)
 {
     try
     {
         Win32HornBlow((int)type);
     }
     catch (Exception ex)
     {
         Callback.ReportError(ex.ToString());
     }
 }
Exemplo n.º 7
0
 internal HornBlowEvent(double trackPosition, HornTypes type, bool triggerOnce, int beaconStructureIndex, Vector2 position, double yaw, double pitch, double roll)
 {
     TrackPosition        = trackPosition;
     Type                 = type;
     TriggerOnce          = triggerOnce;
     BeaconStructureIndex = beaconStructureIndex;
     Position             = position;
     Yaw   = yaw;
     Pitch = pitch;
     Roll  = roll;
 }
Exemplo n.º 8
0
 internal override void HornBlow(HornTypes type)
 {
     try
     {
         this.Api.HornBlow(type);
     }
     catch (Exception ex)
     {
         base.LastException = ex;
         throw;
     }
 }
Exemplo n.º 9
0
 internal override void HornBlow(HornTypes type)
 {
                 #if !DEBUG
     try {
                         #endif
     this.Api.HornBlow(type);
                         #if !DEBUG
 }
 catch (Exception ex) {
     base.LastException = ex;
     throw;
 }
                 #endif
 }
Exemplo n.º 10
0
 public void HornBlow(HornTypes type)
 {
     if (type == HornTypes.Primary)
     {
         ATSPlugin.Cpp.HornBlow(0);
     }
     if (type == HornTypes.Secondary)
     {
         ATSPlugin.Cpp.HornBlow(1);
     }
     if (type == HornTypes.Music)
     {
         ATSPlugin.Cpp.HornBlow(2);
     }
 }
Exemplo n.º 11
0
 public void HornBlow(HornTypes type)
 {
     if (DVS.ResetOnKlaxon == 4)
     {
         DVS.ResetTimer();
     }
     else
     {
         if (type == HornTypes.Primary && DVS.ResetOnKlaxon == 1)
         {
             DVS.ResetTimer();
         }
         if (type == HornTypes.Secondary && DVS.ResetOnKlaxon == 2)
         {
             DVS.ResetTimer();
         }
         if (type == HornTypes.Music && DVS.ResetOnKlaxon == 3)
         {
             DVS.ResetTimer();
         }
     }
 }
Exemplo n.º 12
0
			/// <summary>Called when a horn is played or stopped.</summary>
			internal abstract void HornBlow(HornTypes type);
Exemplo n.º 13
0
		/// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
		/// <param name="type">The type of horn.</param>
		public void HornBlow(HornTypes type) {
			// TODO: Your old HornBlow code goes here.
		}
Exemplo n.º 14
0
 /// <summary>
 /// 警笛が扱われたときに呼び出される関数
 /// </summary>
 /// <param name="type">警笛のタイプ</param>
 internal abstract void HornBlow(HornTypes type);
Exemplo n.º 15
0
 /// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
 /// <param name="type">The type of horn.</param>
 public void HornBlow(HornTypes type)
 {
     vacma.trainEvent(new TrainEvent(EventTypes.EventTypeBlowHorn, type));
 }
Exemplo n.º 16
0
		internal override void HornBlow(HornTypes type) {
			try {
				Win32HornBlow((int)type);
			} catch (Exception ex) {
				base.LastException = ex;
				throw;
			}
		}
Exemplo n.º 17
0
 /// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
 /// <param name="type">The type of horn.</param>
 public void HornBlow(HornTypes type)
 {
 }
Exemplo n.º 18
0
 /// <summary>Called when a horn is played or stopped.</summary>
 public abstract void HornBlow(HornTypes type);
Exemplo n.º 19
0
 /// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
 /// <param name="type">The type of horn.</param>
 internal virtual void HornBlow(HornTypes type)
 {
 }
Exemplo n.º 20
0
 /// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
 /// <param name="type">The type of horn.</param>
 public void HornBlow(HornTypes type)
 {
     // TODO: Your old HornBlow code goes here.
 }
Exemplo n.º 21
0
 public void HornBlow(HornTypes type)
 {
 }
Exemplo n.º 22
0
		/// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
		/// <param name="type">The type of horn.</param>
		public void HornBlow(HornTypes type) {
			this.Train.HornBlow(type);
		}
Exemplo n.º 23
0
 public void HornBlow(HornTypes _p1)
 {
     try { Impl.HornBlow((int)_p1); } catch (Exception ex) { RuntimeException(ex); }
 }
Exemplo n.º 24
0
		/// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
		/// <param name="type">The type of horn.</param>
		internal override void HornBlow(HornTypes type) {
		}
Exemplo n.º 25
0
		/// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
		/// <param name="type">The type of horn.</param>
		internal override void HornBlow(HornTypes type) {
			if (this.Counter < TimeUntilBrake) {
				this.Counter = 0.0;
			}
		}
Exemplo n.º 26
0
 /// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
 /// <param name="type">The type of horn.</param>
 internal override void HornBlow(HornTypes type)
 {
 }
Exemplo n.º 27
0
		/// <summary>Is called when a horn is played or when the music horn is stopped.</summary>
		/// <param name="type">The type of horn.</param>
		internal void HornBlow(HornTypes type) {
			foreach (Device device in this.Devices) {
				device.HornBlow(type);
			}
		}
Exemplo n.º 28
0
 public override void HornBlow(HornTypes type)
 {
     pipeProxy.HornBlow(type);
 }
Exemplo n.º 29
0
 /// <summary>警笛が扱われたときに呼び出される関数</summary>
 /// <param name="type">警笛のタイプ</param>
 public void HornBlow(HornTypes type)
 {
     this.Train.HornBlow(type);
 }
Exemplo n.º 30
0
 public void HornBlow(HornTypes type)
 {
     Win32DetailManagerPInvoke.HornBlow((int)type - 1);
 }
Exemplo n.º 31
0
		internal override void HornBlow(HornTypes type) {
			#if !DEBUG
			try {
				#endif
				this.Api.HornBlow(type);
				#if !DEBUG
			} catch (Exception ex) {
				base.LastException = ex;
				throw;
			}
			#endif
		}