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 ActionsDiscoveredEventArgsConstructors
ActionsDiscoveredEventArgs(IInteractable, IReadOnlyList<IInteractableAction>, InteractionContext)
Creates a new ActionsDiscoveredEventArgs with the given parameters.
public ActionsDiscoveredEventArgs(IInteractable target, IReadOnlyList<IInteractableAction> actions, InteractionContext context)Parameters
| Name | Type | Description |
|---|---|---|
target | FireSoftworks.Interaction.IInteractable | The interactable target that was focused on. |
actions | System.Collections.Generic.IReadOnlyList{FireSoftworks.Interaction.IInteractableAction} | The list of available actions for this target. |
context | FireSoftworks.Interaction.InteractionContext | The 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> ActionsContext
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 ContextTarget
The interactable target for which actions were discovered.
public readonly IInteractable Target