#include <InteractionChannel.h>
◆ Close()
| void UInteractionChannel::Close |
( |
| ) |
|
86{
88 {
89 return;
90 }
91
93
95 {
96 if (Interactable.IsValid() && Interactable->GetActiveChannel() == this)
97 {
98 Interactable->UnregisterFromChannel();
99 }
100 }
101
107}
TWeakObjectPtr< ACharacterBase > Requester
Definition InteractionChannel.h:65
bool bIsClosed
Definition InteractionChannel.h:63
FOnInteractionChannelEmpty OnChannelEmpty
Definition InteractionChannel.h:60
FOnInteractionDelegate OnInteractableRegistered
Definition InteractionChannel.h:54
TArray< TWeakObjectPtr< UInteractabilityComponent > > RegisteredInteractables
Definition InteractionChannel.h:66
FOnInteractionDelegate OnInteractableUnregistered
Definition InteractionChannel.h:57
다음을 참조함 : bIsClosed, OnChannelEmpty, OnInteractableRegistered, OnInteractableUnregistered, RegisteredInteractables, Requester.
다음에 의해서 참조됨 : UnregisterInteractable().
◆ CreateChannel()
13{
15 check(Channel);
16
17 AActor* ThisActor = Cast<AActor>(InteractabilityCompo->GetOwner());
19
21
22 FScriptDelegate OnRegisteredDelegate;
23 FScriptDelegate OnUnregisteredDelegate;
24
25 OnRegisteredDelegate.BindUFunction(ThisActor, GET_FUNCTION_NAME_CHECKED(
IInteractableInterface, OnBeginInteraction));
26 OnUnregisteredDelegate.BindUFunction(ThisActor, GET_FUNCTION_NAME_CHECKED(
IInteractableInterface, OnEndInteraction));
27
30
32 return Channel;
33}
#define NAMEOF(Type)
Definition CK_UE.h:31
Definition InteractableInterface.h:26
Definition InteractabilityComponent.h:15
void RegisterToChannel(UInteractionChannel *Channel)
Definition InteractabilityComponent.cpp:18
Definition InteractionChannel.h:21
void Initialize(ACharacterBase *InRequester)
Definition InteractionChannel.cpp:36
다음을 참조함 : Initialize(), NAMEOF, OnInteractableRegistered, OnInteractableUnregistered, UInteractabilityComponent::RegisterToChannel().
다음에 의해서 참조됨 : AInteractableActor::Interact().
◆ GetRequester()
| FORCEINLINE ACharacterBase * UInteractionChannel::GetRequester |
( |
| ) |
const |
|
inline |
◆ Initialize()
◆ IsClosed()
| FORCEINLINE bool UInteractionChannel::IsClosed |
( |
| ) |
const |
|
inline |
◆ IsEmpty()
| FORCEINLINE bool UInteractionChannel::IsEmpty |
( |
| ) |
const |
|
inline |
◆ RegisterInteractable()
◆ RemoveInvalidInteractableActors()
| void UInteractionChannel::RemoveInvalidInteractableActors |
( |
| ) |
|
|
private |
◆ UnregisterInteractable()
◆ bIsClosed
| bool UInteractionChannel::bIsClosed = false |
|
private |
◆ OnChannelEmpty
| FOnInteractionChannelEmpty UInteractionChannel::OnChannelEmpty |
◆ OnInteractableRegistered
| FOnInteractionDelegate UInteractionChannel::OnInteractableRegistered |
◆ OnInteractableUnregistered
| FOnInteractionDelegate UInteractionChannel::OnInteractableUnregistered |
◆ RegisteredInteractables
◆ Requester
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: