Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
UInteractabilityComponent 클래스 참조

#include <InteractabilityComponent.h>

UInteractabilityComponent에 대한 상속 다이어그램 :
Inheritance graph
UInteractabilityComponent에 대한 협력 다이어그램:
Collaboration graph

Public 멤버 함수

 UInteractabilityComponent ()
 
void RegisterToChannel (UInteractionChannel *Channel)
 
void UnregisterFromChannel ()
 
FORCEINLINE bool ShouldShowInteractionMessage () const
 
FORCEINLINE const FText & GetInteractionMessage () const
 
FORCEINLINE bool IsChannelRegistered () const
 
FORCEINLINE UInteractionChannel * GetActiveChannel () const
 

Protected 속성

bool bCanInteractByDefault = true
 
bool bShowInteractionMessage = false
 
FText InteractionMessage = NSLOCTEXT("InteractabilityComponent", "DefaultInteractionMessage", "키를 눌러 상호작용하기")
 

Private 속성

TObjectPtr< UInteractionChannel > ActiveChannel
 

생성자 & 소멸자 문서화

◆ UInteractabilityComponent()

UInteractabilityComponent::UInteractabilityComponent ( )
13{
14 PrimaryComponentTick.bCanEverTick = false;
15}

멤버 함수 문서화

◆ GetActiveChannel()

FORCEINLINE UInteractionChannel * UInteractabilityComponent::GetActiveChannel ( ) const
inline
47 {
48 return ActiveChannel.Get();
49 }
TObjectPtr< UInteractionChannel > ActiveChannel
Definition InteractabilityComponent.h:65

◆ GetInteractionMessage()

FORCEINLINE const FText & UInteractabilityComponent::GetInteractionMessage ( ) const
inline

대상에 설정된 상호작용 안내 문구를 반환합니다.

35 {
36 return InteractionMessage;
37 }
FText InteractionMessage
Definition InteractabilityComponent.h:61

다음에 의해서 참조됨 : UInteractionComponent::HandleInteractionFocusEntered().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ IsChannelRegistered()

FORCEINLINE bool UInteractabilityComponent::IsChannelRegistered ( ) const
inline
41 {
42 return ActiveChannel != nullptr;
43 }

◆ RegisterToChannel()

void UInteractabilityComponent::RegisterToChannel ( UInteractionChannel *  Channel)
19{
20 checkf(Channel, TEXT("Channel is nullptr"));
21 checkf(Cast<AInteractableActor>(GetOuter()), TEXT("Outer is not AInteractableActor"));
22
23 if (ActiveChannel == Channel)
24 {
25 return;
26 }
27
28 if (ActiveChannel)
29 {
31 }
32
33 ActiveChannel = Channel;
34 Channel->RegisterInteractable(this);
35}
void UnregisterFromChannel()
Definition InteractabilityComponent.cpp:38
void RegisterInteractable(UInteractabilityComponent *Interactable)
Definition InteractionChannel.cpp:42

다음을 참조함 : ActiveChannel, UInteractionChannel::RegisterInteractable(), UnregisterFromChannel().

다음에 의해서 참조됨 : UInteractionChannel::CreateChannel().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ ShouldShowInteractionMessage()

FORCEINLINE bool UInteractabilityComponent::ShouldShowInteractionMessage ( ) const
inline

상호작용 안내 메시지의 표시 여부를 반환합니다.

28 {
30 }
bool bShowInteractionMessage
Definition InteractabilityComponent.h:57

다음에 의해서 참조됨 : UInteractionComponent::HandleInteractionFocusEntered().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ UnregisterFromChannel()

void UInteractabilityComponent::UnregisterFromChannel ( )
39{
40 if (ActiveChannel == nullptr)
41 {
42 return;
43 }
44
46 ActiveChannel = nullptr;
47 Channel->UnregisterInteractable(this);
48}
Definition InteractionChannel.h:21
void UnregisterInteractable(UInteractabilityComponent *Interactable)
Definition InteractionChannel.cpp:61

다음을 참조함 : ActiveChannel, UInteractionChannel::UnregisterInteractable().

다음에 의해서 참조됨 : RegisterToChannel().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ ActiveChannel

TObjectPtr<UInteractionChannel> UInteractabilityComponent::ActiveChannel
private

다음에 의해서 참조됨 : RegisterToChannel(), UnregisterFromChannel().

◆ bCanInteractByDefault

bool UInteractabilityComponent::bCanInteractByDefault = true
protected

◆ bShowInteractionMessage

bool UInteractabilityComponent::bShowInteractionMessage = false
protected

이 대상의 상호작용 안내 메시지를 표시할지 지정합니다.

◆ InteractionMessage

FText UInteractabilityComponent::InteractionMessage = NSLOCTEXT("InteractabilityComponent", "DefaultInteractionMessage", "키를 눌러 상호작용하기")
protected

메시지 표시가 활성화된 경우 사용할 안내 문구입니다.


이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: