Skip to content

ActionsDiscoveredEventArgs

Namespace: FireSoftworks.Interaction
Assembly: FireSoftworks.Interaction
Type: Class

Event arguments passed when a new set of actions is discovered on an interactable target. This event fires when the player focuses on a new interactable object.

public class ActionsDiscoveredEventArgs

Constructors

ActionsDiscoveredEventArgs(IInteractable, IReadOnlyList<IInteractableAction>, InteractionContext)

Creates a new ActionsDiscoveredEventArgs with the given parameters.

public ActionsDiscoveredEventArgs(IInteractable target, IReadOnlyList<IInteractableAction> actions, InteractionContext context)

Parameters

NameTypeDescription
targetFireSoftworks.Interaction.IInteractableThe interactable target that was focused on.
actionsSystem.Collections.Generic.IReadOnlyList{FireSoftworks.Interaction.IInteractableAction}The list of available actions for this target.
contextFireSoftworks.Interaction.InteractionContextThe interaction context for the current interaction.

Fields

Actions

The read-only list of available actions for the target. This list is sorted by action ID for consistent ordering.

public readonly IReadOnlyList<IInteractableAction> Actions

Context

The interaction context containing information about the interactor and environment. This context is used for checking action availability and other context-dependent logic.

public readonly InteractionContext Context

Target

The interactable target for which actions were discovered.

public readonly IInteractable Target