Skip to content

IAndromedaInteractableInterface

Kind: class Source: Source/Andromeda/Capabilities/AndromedaInteractableInterface.h

Public Static Methods

Member Type Summary
IsInteractable bool Returns whether an object implements the interaction capability contract.

Public Methods

Member Type Summary
CanInteract bool Reports whether interaction is currently allowed for the supplied pawn.
GetInteractionEvents UAndromedaCapabilityEventsComponent * Returns an optional event source for interaction availability changes.
Interact void Executes the interaction command after CanInteract passes.

Members

IsInteractable

static bool IAndromedaInteractableInterface::IsInteractable(const UObject *Object)

Returns whether an object implements the interaction capability contract.

Parameters:

Name Type Description
Object const UObject * Object to inspect.

Returns:

True when Object is non-null and implements UAndromedaInteractableInterface.

CanInteract

bool IAndromedaInteractableInterface::CanInteract(APawn *InteractingPawn) const

Reports whether interaction is currently allowed for the supplied pawn.

This controls whether interaction input can execute, not whether the object can hold focus. Implementations should reflect current runtime state, not only static class capability.

Parameters:

Name Type Description
InteractingPawn APawn * Pawn requesting interaction.

Returns:

True when Interact may be called for this pawn.

GetInteractionEvents

UAndromedaCapabilityEventsComponent * IAndromedaInteractableInterface::GetInteractionEvents() const

Returns an optional event source for interaction availability changes.

Observers subscribe to the returned component's OnCapabilityChanged delegate and then re-query CanInteract when it fires.

Returns:

Event source for interaction changes, or nullptr when interaction state is stable.

Interact

void IAndromedaInteractableInterface::Interact(APawn *InteractingPawn)

Executes the interaction command after CanInteract passes.

Implementations should be idempotent or internally guarded because input can request interaction repeatedly.

Parameters:

Name Type Description
InteractingPawn APawn * Pawn executing interaction.