Class EventHandlerUnit<TArgs>
Inherited Members
Namespace: Ludiq.Bolt
Syntax
public abstract class EventHandlerUnit<TArgs> : EventUnit, ISerializationCallbackReceiver, IEventHandlerUnit, IEventUnit, IBehaviourUnit, IUnit, IGraphElementWithDebugData, IBehaviourGraphElement, IGraphElementWithData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, IGraphEventHandler<TArgs>
Type Parameters
Name | Description |
---|---|
TArgs |
Properties
coroutine
Run this event in a coroutine, enabling asynchronous flow like wait units.
Declaration
[Serialize]
[InspectableIf("coroutine")]
[InspectorExpandTooltip]
[Obsolete("Use the Coroutine unit instead.")]
public bool coroutine { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
hookID
Declaration
public virtual EventHookID hookID { get; }
Property Value
Type | Description |
---|---|
EventHookID |
invoke
Declaration
[DoNotSerialize]
[UnitPortKey("trigger")]
[UnitPortDisplay(primary = true, showLabel = false, showDocumentation = false)]
public ControlOutput invoke { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
register
Declaration
[DoNotSerialize]
protected abstract bool register { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
AssignArguments(Flow, TArgs)
Declaration
protected virtual void AssignArguments(Flow flow, TArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
TArgs | args |
CompareNames(Flow, ValueInput, String)
Declaration
protected static bool CompareNames(Flow flow, ValueInput namePort, string calledName)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
ValueInput | namePort | |
String | calledName |
Returns
Type | Description |
---|---|
Boolean |
CreateData()
Declaration
protected override IEventUnitData CreateData()
Returns
Type | Description |
---|---|
IEventUnitData |
Overrides
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()
GetHook(GraphReference)
Declaration
public virtual EventHook GetHook(GraphReference instance)
Parameters
Type | Name | Description |
---|---|---|
GraphReference | instance |
Returns
Type | Description |
---|---|
EventHook |
Implements
Invoke(GraphReference, TArgs)
Declaration
public void Invoke(GraphReference reference, TArgs args)
Parameters
Type | Name | Description |
---|---|---|
GraphReference | reference | |
TArgs | args |
Implements
OnActivating(GraphReference)
Declaration
protected override void OnActivating(GraphReference instance)
Parameters
Type | Name | Description |
---|---|---|
GraphReference | instance |
Overrides
OnStartListening(GraphReference)
Declaration
protected override void OnStartListening(GraphReference instance)
Parameters
Type | Name | Description |
---|---|---|
GraphReference | instance |
Overrides
OnStopListening(GraphReference)
Declaration
protected override void OnStopListening(GraphReference instance)
Parameters
Type | Name | Description |
---|---|---|
GraphReference | instance |
Overrides
ShouldInvoke(Flow, TArgs)
Declaration
protected virtual bool ShouldInvoke(Flow flow, TArgs args)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
TArgs | args |
Returns
Type | Description |
---|---|
Boolean |