2 using System.Collections.Generic;
5 using System.Xml.Serialization;
7 namespace DirectOutput.FX.TimmedFX
28 get {
return _RetriggerBehaviour; }
29 set { _RetriggerBehaviour = value; }
32 private int _DurationMs = 500;
42 get {
return _DurationMs; }
43 set { _DurationMs = value; }
54 public bool Active {
get;
private set; }
62 public override void Trigger(Table.TableElementData TableElementData)
64 if (TargetEffect != null)
68 if (TableElementData.Value != 0)
70 TargetEffect.
Trigger(TableElementData);
71 Table.Pinball.Alarms.RegisterAlarm(DurationMs, DurationEnd, TableElementData.Clone());
79 private void DurationEnd(
object TableElementData)
82 Table.TableElementData TED = (Table.TableElementData)TableElementData;
84 TargetEffect.Trigger(TED);
91 public override void Finish()
95 Table.Pinball.Alarms.UnregisterAlarm(DurationEnd);