1 using System.Xml.Serialization;
13 private string _TargetEffectName;
18 public string TargetEffectName
20 get {
return _TargetEffectName; }
23 if (_TargetEffectName != value)
25 _TargetEffectName = value;
54 _TargetEffect = value;
65 if (TargetEffect != null)
69 TargetEffect.Trigger(TriggerData);
73 Log.
Exception(
"The target effect {0} of the {1} {2} has thrown a exception. Disabling further calls of the target effect.".Build(TargetEffectName, GetType().Name, Name), E);
83 if (!TargetEffectName.IsNullOrWhiteSpace() &&
Table.
Effects.Contains(TargetEffectName))
108 ResolveEffectName(
Table);
void TriggerTargetEffect(TableElementData TriggerData)
Triggers the target effect. The method will deactivate the target effect if it throws a exception...
override void Finish()
Finishes the EffectEffect. Releases the references to the target effect and to the table object...
void Finish()
Finishes the table and the contained objects (Effects, TableElements)
override void Init(Table.Table Table)
Initializes the EffectEffect. Resolves the name of the TargetEffect.
A simple logger used to record important events and exceptions.
Abstract base class for IEffect objects. This class inherits NamedItemBase and implements IEffect...
Common interface for all effects. If a new effect is implemented it is best to inherit from the abst...
Data representing the state of a table emlement
EffectList Effects
List of table specific effects.
Base class for effects targeting another effect.
The Table namespace contains all table specific classes like the Table class itself, TableElement and effect assigment classes.
Holds all table specific information and handles all TableElements
Table()
Initializes a new instance of the Table class.
static void Exception(string Message, Exception E=null)
Writes a exception message to the log.