Listener component that can bind to any number of signal components.
More...
#include <FtsTriggerListenerComponent.h>
Listener component that can bind to any number of signal components.
◆ UFtsTriggerListenerComponent()
| UFtsTriggerListenerComponent::UFtsTriggerListenerComponent |
( |
| ) |
|
◆ BeginPlay()
| void UFtsTriggerListenerComponent::BeginPlay |
( |
| ) |
|
|
overridevirtual |
◆ CreateListenerConnections()
| void UFtsTriggerListenerComponent::CreateListenerConnections |
( |
| ) |
|
◆ GetObservedTriggers()
Get all triggers this listener listens to.
- Parameters
-
| OutTriggers | All triggers this component currently listens to |
◆ GetTriggerSignalReceivedDelegate()
| FFtsTriggerListenerDelegate & UFtsTriggerListenerComponent::GetTriggerSignalReceivedDelegate |
( |
| ) |
|
Get the received signal delegate.
- Returns
- The received signal delegate
◆ IsListeningToTrigger()
Check if this listener is currently bound to a specified trigger.
- Parameters
-
| InTrigger | Trigger to query |
- Returns
- true if currently listening to it
◆ StartListeningToAllOwnedTriggers()
| void UFtsTriggerListenerComponent::StartListeningToAllOwnedTriggers |
( |
AActor * | InTriggerOwner | ) |
|
Queries all triggers of an owner and listens to all.
- Parameters
-
| InTriggerOwner | Actor holding the trigger components |
◆ StartListeningToOwnedTrigger()
| void UFtsTriggerListenerComponent::StartListeningToOwnedTrigger |
( |
AActor * | InTriggerOwner, |
|
|
FName | InTriggerId ) |
Searches for a specified trigger from the owner and starts listening to it.
- Parameters
-
| InTriggerOwner | Actor holding the trigger component |
| InTriggerId | Specific trigger id |
◆ StartListeningToTrigger()
Registers a trigger with the listener.
- Parameters
-
| Trigger | Trigger to listen to |
◆ StopListeningToAllOwnedTriggers()
| void UFtsTriggerListenerComponent::StopListeningToAllOwnedTriggers |
( |
AActor * | InTriggerOwner | ) |
|
Queries all triggers of an owner and stops listening to all.
- Parameters
-
| InTriggerOwner | Actor holding the trigger components |
◆ StopListeningToOwnedTrigger()
| void UFtsTriggerListenerComponent::StopListeningToOwnedTrigger |
( |
AActor * | InTriggerOwner, |
|
|
FName | InTriggerId ) |
Searches for a specified trigger from the owner and stops listening to it.
- Parameters
-
| InTriggerOwner | Actor holding the trigger component |
| InTriggerId | Specific trigger id |
◆ StopListeningToTrigger()
Unregisters a trigger from the listener.
- Parameters
-
| Trigger | Trigger to stop listening to |
◆ TriggerSignalReceived()
| void UFtsTriggerListenerComponent::TriggerSignalReceived |
( |
const FInstancedStruct & | Signal | ) |
|
|
protected |
Callback method for trigger delegate.
- Parameters
-
◆ ObservedTriggers
Triggers currently being listened to.
◆ OnTriggerSignalReceived
| FFtsTriggerListenerDelegate UFtsTriggerListenerComponent::OnTriggerSignalReceived |
|
protected |
Delegate that broadcasts when a listened to trigger send a signal.
◆ SignalDelegate
| FFtsTriggerSignalEmittedDelegate UFtsTriggerListenerComponent::SignalDelegate |
|
protected |
◆ TriggersToObserve
List of triggers this listener will register to.
The documentation for this class was generated from the following files: