2 using System.Collections.Generic;
5 using System.Xml.Serialization;
6 using DirectOutput.Table;
8 namespace DirectOutput.FX.TimmedFX
30 get {
return _RetriggerBehaviour; }
31 set { _RetriggerBehaviour = value; }
34 private int _DurationMs = 500;
42 public int MinDurationMs
44 get {
return _DurationMs; }
45 set { _DurationMs = value; }
57 public bool Active {
get;
private set; }
60 private DateTime DurationStart = DateTime.MinValue;
69 if (TargetEffect != null)
71 if (TableElementData.
Value != 0)
75 DurationStart = DateTime.Now;
76 UntriggerData = TableElementData;
77 TriggerTargetEffect(TableElementData);
83 if (Active && UntriggerData.TableElementType==TableElementData.
TableElementType && UntriggerData.Number==TableElementData.
Number)
85 if ((DateTime.Now - DurationStart).TotalMilliseconds >= MinDurationMs)
91 Table.
Pinball.
Alarms.RegisterAlarm(MinDurationMs - (
int)(DateTime.Now - DurationStart).TotalMilliseconds, MinDurationEnd);
102 private void MinDurationEnd()
108 TriggerTargetEffect(D);
118 public override void Finish()