Public Member Functions | List of all members
IInteractorAgent Interface Reference

Represents an interactor agent. More...

Inheritance diagram for IInteractorAgent:
InteractorAgent ProviderInteractorAgent< TProvider >

Public Member Functions

Task< IEnumerable< IInteractor > > FindInteractorsAsync (Rectangle rect, CancellationToken cancellationToken)
 Finds the interactors affected by the provided Rectangle. This operation can be cancelled using the specified CancellationToken. More...
 
void HandleEvent (InteractionEvent interactionEvent)
 Handles the provided Model.InteractionEvent. More...
 

Detailed Description

Represents an interactor agent.

Member Function Documentation

◆ FindInteractorsAsync()

Task<IEnumerable<IInteractor> > FindInteractorsAsync ( Rectangle  rect,
CancellationToken  cancellationToken 
)

Finds the interactors affected by the provided Rectangle. This operation can be cancelled using the specified CancellationToken.

Parameters
rectThe query.
cancellationTokenThe cancellation token.
Returns
A task that represents the asynchronous operation. The value of IEnumerable<IInteractorBase> contains the found interactors.

Implemented in InteractorAgent, and ProviderInteractorAgent< TProvider >.

◆ HandleEvent()

void HandleEvent ( InteractionEvent  interactionEvent)

Handles the provided Model.InteractionEvent.

Parameters
interactionEventThe event to handle.

The documentation for this interface was generated from the following file: