Class DotNetEventSensor
Inheritance
DotNetEventSensor
Assembly: Xareus.Unity.Libraries.dll
Syntax
[FunctionDescription("This sensor can be activated by a C# event (ex: public event MyDelegate;)?\nFor Actions (ex: public Action<int> MyAction;) you must use DotNetActionSensor", new string[] { "Event" })]
public class DotNetEventSensor : AUnityArityEventHandlerSensor
Constructors
DotNetEventSensor(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
public DotNetEventSensor(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")]
protected EventInfo 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