Class AUnityArityEventHandlerSensor
Inheritance
AUnityArityEventHandlerSensor
Assembly: Xareus.Unity.Libraries.dll
Syntax
public abstract class AUnityArityEventHandlerSensor : AUnitySensor
Constructors
AUnityArityEventHandlerSensor(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
protected AUnityArityEventHandlerSensor(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Fields
ARITY_WARNING_MESSAGE
Declaration
protected const string ARITY_WARNING_MESSAGE = "ValuesToCheck count does not match event arity."
Field Value
INVOKE_METHOD
Declaration
protected const string INVOKE_METHOD = "Invoke"
Field Value
Triggered
Declaration
Field Value
Properties
ValuesToCheckAgainst
Declaration
protected virtual List<object> ValuesToCheckAgainst { get; }
Property Value
Methods
EventTriggerHandler()
Declaration
protected virtual void EventTriggerHandler()
GetHandlerMethod(MethodBase)
Declaration
protected MethodInfo GetHandlerMethod(MethodBase invokedMethod)
Parameters
Returns
GetHandlerMethod(Type[])
Declaration
protected MethodInfo GetHandlerMethod(Type[] parameterTypes)
Parameters
| Type |
Name |
Description |
| Type[] |
parameterTypes |
|
Returns
OnEvent0()
Declaration
protected void OnEvent0()
OnEvent1<T0>(T0)
Declaration
protected void OnEvent1<T0>(T0 a0)
Parameters
| Type |
Name |
Description |
| T0 |
a0 |
|
Type Parameters
OnEvent2<T0, T1>(T0, T1)
Declaration
protected void OnEvent2<T0, T1>(T0 a0, T1 a1)
Parameters
| Type |
Name |
Description |
| T0 |
a0 |
|
| T1 |
a1 |
|
Type Parameters
OnEvent3<T0, T1, T2>(T0, T1, T2)
Declaration
protected void OnEvent3<T0, T1, T2>(T0 a0, T1 a1, T2 a2)
Parameters
| Type |
Name |
Description |
| T0 |
a0 |
|
| T1 |
a1 |
|
| T2 |
a2 |
|
Type Parameters
| Name |
Description |
| T0 |
|
| T1 |
|
| T2 |
|
OnEvent4<T0, T1, T2, T3>(T0, T1, T2, T3)
Declaration
protected void OnEvent4<T0, T1, T2, T3>(T0 a0, T1 a1, T2 a2, T3 a3)
Parameters
| Type |
Name |
Description |
| T0 |
a0 |
|
| T1 |
a1 |
|
| T2 |
a2 |
|
| T3 |
a3 |
|
Type Parameters
| Name |
Description |
| T0 |
|
| T1 |
|
| T2 |
|
| T3 |
|
SafeSensorCheck()
This method is called at each scenario update. Note that this code will be executed in unity's thread
Declaration
public override ASensor.Result SafeSensorCheck()
Returns
Overrides