Skip to content

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 ActionExecutedEventArgs

Constructors

ActionExecutedEventArgs(IInteractable, IInteractableAction, InteractionResult)

Creates a new ActionExecutedEventArgs with the given parameters.

public ActionExecutedEventArgs(IInteractable target, IInteractableAction action, InteractionResult result)

Parameters

NameTypeDescription
targetFireSoftworks.Interaction.IInteractableThe interactable target that was interacted with.
actionFireSoftworks.Interaction.IInteractableActionThe action that was executed.
resultFireSoftworks.Interaction.InteractionResultThe result of the action execution.

Fields

Action

The action that was executed.

public readonly IInteractableAction Action

Result

The result of the action execution (success/failure with optional message).

public readonly InteractionResult Result

Target

The interactable object that was targeted by the action.

public readonly IInteractable Target