DirectOutput
DirectOutput framework R2 for virtual pinball cabinets.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
DirectOutput.FX.TimmedFX.ExtendDurationEffect Class Reference

The extend duration effect triggers another effect for a duration which is extebnded by the number of milliseconds specified in DurationMs.
This is done by forwarding triggers calls which are seting the effect to active directly to the target effect and delaying the forwarding of calls which set the effect to inactive by the number of milliseconds specified in DurationMs.
More...

Inheritance diagram for DirectOutput.FX.TimmedFX.ExtendDurationEffect:
Collaboration diagram for DirectOutput.FX.TimmedFX.ExtendDurationEffect:

Public Member Functions

override void Trigger (Table.TableElementData TableElementData)
 Triggers the effect with the given TableElementData.
Trigger calls of a TableElemenData value which is not equal 0, are forwarded directly to the target effect.
Calls with a TableElementData Value of 0, are delayed by the Duration specifed in DurationMs before they are forwarded to the target effect. More...
 
override void Init (Table.Table Table)
 Inititializes the ExtendDurationEffect. More...
 
override void Finish ()
 Finishes the ExtendDurationEffect.
Clears all pending/delayed calls. More...
 

Properties

int DurationMs [get, set]
 Gets or sets the duration in milliseconds which will is added to the duration during which the effect is triggered/active. More...
 
- Properties inherited from DirectOutput.FX.EffectEffectBase
string TargetEffectName [get, set]
 Name of the target effect.
Triggers EffectNameChanged if value is changed. More...
 
IEffect TargetEffect [get, set]
 TargetEffect for the effect (ReadOnly).
The property is resolved from the TargetEffectName. If TargetEffectName is empty or unknown this property will return null. More...
 
Table.Table Table [get, set]
 Gets the table object which is hosting the effect. More...
 

Additional Inherited Members

- Protected Member Functions inherited from DirectOutput.FX.EffectEffectBase
void TriggerTargetEffect (TableElementData TriggerData)
 Triggers the target effect.
The method will deactivate the target effect if it throws a exception. More...
 
- Events inherited from DirectOutput.General.Generic.NamedItemBase
EventHandler< NameChangeEventArgsAfterNameChanged
 Event is fired after the value of the property Name has changed. More...
 
EventHandler< NameChangeEventArgsBeforeNameChange
 Event is fired before the value of the property Name is changed. More...
 
- Events inherited from DirectOutput.FX.IEffect
new EventHandler
< NameChangeEventArgs
AfterNameChanged
 This event must be fired after the Name property of a IEffect object has changed. More...
 
new EventHandler
< NameChangeEventArgs
BeforeNameChange
 This event must be fired before the Name property of a IEffect object is changed. More...
 

Detailed Description

The extend duration effect triggers another effect for a duration which is extebnded by the number of milliseconds specified in DurationMs.
This is done by forwarding triggers calls which are seting the effect to active directly to the target effect and delaying the forwarding of calls which set the effect to inactive by the number of milliseconds specified in DurationMs.

FX_ExtendDuration.png
ExtendDuration effect

Member Function Documentation

override void DirectOutput.FX.TimmedFX.ExtendDurationEffect.Finish ( )
virtual

Finishes the ExtendDurationEffect.
Clears all pending/delayed calls.

Reimplemented from DirectOutput.FX.EffectEffectBase.

override void DirectOutput.FX.TimmedFX.ExtendDurationEffect.Init ( Table.Table  Table)
virtual

Inititializes the ExtendDurationEffect.

Parameters
TableThe table which uses the effect.

Reimplemented from DirectOutput.FX.EffectEffectBase.

override void DirectOutput.FX.TimmedFX.ExtendDurationEffect.Trigger ( Table.TableElementData  TableElementData)

Triggers the effect with the given TableElementData.
Trigger calls of a TableElemenData value which is not equal 0, are forwarded directly to the target effect.
Calls with a TableElementData Value of 0, are delayed by the Duration specifed in DurationMs before they are forwarded to the target effect.

Parameters
TableElementDataTableElementData for the TableElement which has triggered the effect.

Property Documentation

int DirectOutput.FX.TimmedFX.ExtendDurationEffect.DurationMs
getset

Gets or sets the duration in milliseconds which will is added to the duration during which the effect is triggered/active.

The extended duration in milliseconds.


The documentation for this class was generated from the following file: