Class DotNetActionSensor
Inheritance
DotNetActionSensor
Assembly: Xareus.Unity.Libraries.dll
Syntax
[FunctionDescription("This sensor can be activated by a C# Actions that is not declared as an event (ex: Public Action<int> MyAction;).\nFor C# events (ex: public event MyDelegate) use DotNetActionSensor", new string[] { "Event" })]
public class DotNetActionSensor : AUnityArityEventHandlerSensor
Constructors
DotNetActionSensor(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
public DotNetActionSensor(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Fields
EVENT
Declaration
protected const string EVENT = "Event"
Field Value
Member
Declaration
[ConfigurationParameter("Event", Necessity.Required)]
[Provider("Object")]
[ProvideConstraint(typeof(Delegate))]
protected FieldInfo Member
Field Value
OBJECT
Declaration
protected const string OBJECT = "Object"
Field Value
UnityObject
Declaration
[ConfigurationParameter("Object", Necessity.Required)]
protected Object UnityObject
Field Value
ValuesToCheck
Declaration
[ConfigurationParameter("ValuesToCheck", "Values to check against the event. You must provide as many values as the event contains", Necessity.Optional)]
[Provider("Event")]
protected List<object> ValuesToCheck
Field Value
Properties
ValuesToCheckAgainst
Declaration
protected override List<object> ValuesToCheckAgainst { get; }
Property Value
Overrides
Methods
SafeReset()
Reset a sensor. Note that this code will be executed in unity's thread and the declared parameters (using the ConfigurationParameter attribute) are already filled
Declaration
public override void SafeReset()
Overrides
SafeStopCheck()
Stops a sensor. Note that this code will be executed in unity's thread and the declared parameters (using the ConfigurationParameter attribute) are already filled
This will be called when the transition contining this sensor is no longer ready to be triggered.
Either it already fired or tokens moved and the transition no longer has the necessary upstream tokens
Declaration
public override void SafeStopCheck()
Overrides