ActionExecutedEventArgs
Namespace: FireSoftworks.Interaction
Assembly: FireSoftworks.Interaction
Type: Class
Event arguments passed when an interaction action is executed. Contains references to the target, the executed action, and the result.
public class ActionExecutedEventArgsConstructors
ActionExecutedEventArgs(IInteractable, IInteractableAction, InteractionResult)
Creates a new ActionExecutedEventArgs with the given parameters.
public ActionExecutedEventArgs(IInteractable target, IInteractableAction action, InteractionResult result)Parameters
| Name | Type | Description |
|---|---|---|
target | FireSoftworks.Interaction.IInteractable | The interactable target that was interacted with. |
action | FireSoftworks.Interaction.IInteractableAction | The action that was executed. |
result | FireSoftworks.Interaction.InteractionResult | The result of the action execution. |
Fields
Action
The action that was executed.
public readonly IInteractableAction ActionResult
The result of the action execution (success/failure with optional message).
public readonly InteractionResult ResultTarget
The interactable object that was targeted by the action.
public readonly IInteractable Target