Similar to [[Component:CallbackValueArgument|CallbackValueArgument]] but instead of a value it's a reference for an action.
There are some [[Sync Delegate|Sync Delegates]] in the game that match this component's requirements, but not many.
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Value|Int|
|Reference|'''A'''|TypeAdv0=true| The reference to give to <code>Callback</code>
|Callback|WorldDelegate|
|Callback|{{RootFieldType|SyncDelegate`1|[[Type:Action`1|Action`1]]<A>}}|TypeAdv1=true| The [[Sync Delegate]] to call and provide <code>Reference</code> to.
}}
== Sync Delegates ==
{{Table ComponentTriggers
|Call:[[Type:Action|Action]]|[[Type:Action|Action]]|false| Call <code>Callback</code> sync delegate and provide it <code>Reference</code>.
|CallAndDestroy:[[Type:Action|Action]]|[[Type:Action|Action]]|false| Do <code>Call()</code> and then destroy this component.
}}
}}
Line 20:
Line 29:
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
Can be used to call a {{RootFieldType|SyncDelegate`1|[[Type:Action`1|Action`1]]<T>}} (an action that takes a reference type) and give it <code>Reference</code> as an argument.