KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
AMainLevelScriptActor 클래스 참조

#include <AMainLevelScriptActor.h>

+ AMainLevelScriptActor에 대한 상속 다이어그램 :
+ AMainLevelScriptActor에 대한 협력 다이어그램:

Public 멤버 함수

 AMainLevelScriptActor ()
 

Protected 멤버 함수

virtual void BeginPlay () override
 
void StartProcess ()
 
void TutorialProcess ()
 

Private 멤버 함수

void OnResponseInterviewHello (FResponseInterviewHello &ResponseData, bool bWasSuccessful)
 
void RequestInterviewHello ()
 

상세한 설명

AMainLevelScriptActor.h 파일의 12 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ AMainLevelScriptActor()

AMainLevelScriptActor::AMainLevelScriptActor ( )

AMainLevelScriptActor.cpp 파일의 16 번째 라인에서 정의되었습니다.

17{
18 PrimaryActorTick.bCanEverTick = false;
19}

멤버 함수 문서화

◆ BeginPlay()

void AMainLevelScriptActor::BeginPlay ( )
overrideprotectedvirtual

AMainLevelScriptActor.cpp 파일의 21 번째 라인에서 정의되었습니다.

22{
23 Super::BeginPlay();
24
25 FTimerHandle TimerHandle;
26 GetWorldTimerManager().SetTimer(TimerHandle, [this]()
27 {
29 }, 1.0f, false);
30}

다음을 참조함 : TutorialProcess().

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

◆ OnResponseInterviewHello()

void AMainLevelScriptActor::OnResponseInterviewHello ( FResponseInterviewHello ResponseData,
bool  bWasSuccessful 
)
private

AMainLevelScriptActor.cpp 파일의 98 번째 라인에서 정의되었습니다.

99{
100 if (bWasSuccessful)
101 {
102 if (auto Popup = UPopupManager::ShowPopupAs<UPopup_InterviewHello>(GetWorld(), EPopupType::InterviewHello))
103 Popup->InitPopup(ResponseData);
104 }
105 else
106 {
107 PRINTLOG(TEXT("--- InterviewHello Questions FAILED ---"));
108 }
109}
#define PRINTLOG(fmt,...)
Definition GameLogging.h:30

다음을 참조함 : PRINTLOG.

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

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

◆ RequestInterviewHello()

void AMainLevelScriptActor::RequestInterviewHello ( )
private

AMainLevelScriptActor.cpp 파일의 82 번째 라인에서 정의되었습니다.

83{
84 // "오늘 보지 않기" 체크
86 return;
87
88 if (auto KLingoNetwork = UKLingoNetworkSystem::Get(GetWorld()))
89 {
90 KLingoNetwork->RequestInterviewHello( FResponseInterviewHelloDelegate::CreateUObject(this, &AMainLevelScriptActor::OnResponseInterviewHello) );
91 }
92 else
93 {
94 PRINTLOG(TEXT("UKLingoNetworkSystem not found!"));
95 }
96}
void OnResponseInterviewHello(FResponseInterviewHello &ResponseData, bool bWasSuccessful)
static bool ShouldSkipInterviewToday(const UObject *WorldContextObject)
오늘 Interview 팝업을 건너뛸지 확인

다음을 참조함 : OnResponseInterviewHello(), PRINTLOG, UPopup_InterviewHello::ShouldSkipInterviewToday().

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

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

◆ StartProcess()

void AMainLevelScriptActor::StartProcess ( )
protected

AMainLevelScriptActor.cpp 파일의 53 번째 라인에서 정의되었습니다.

54{
55 // Host(서버)인지 확인
56 if (HasAuthority())
57 {
58 // Host인 경우: 레벨 선택 팝업 표시
59 if (auto Popup = UPopupManager::ShowPopupAs<UPopup_LevelSelect>(GetWorld(), EPopupType::LevelSelect))
60 {
61 // 팝업 초기화
62 Popup->InitPopup();
63
64 // 팝업이 닫힐 때 RequestInterviewHello 호출
65 Popup->OnPopupClosed.BindLambda([this]()
66 {
68 });
69 }
70 else
71 {
72 PRINTLOG(TEXT("Failed to show LevelSelect popup"));
73 }
74 }
75 else
76 {
77 // Host가 아닌 경우: 바로 RequestInterviewHello 호출
79 }
80}

다음을 참조함 : PRINTLOG, RequestInterviewHello().

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

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

◆ TutorialProcess()

void AMainLevelScriptActor::TutorialProcess ( )
protected

AMainLevelScriptActor.cpp 파일의 32 번째 라인에서 정의되었습니다.

33{
34 if (auto Popup = UPopupManager::ShowPopupAs<UPopup_HowToPlay>(GetWorld(), EPopupType::HowToPlay))
35 {
36 TArray<EHowToPlayPageType> PageTypes;
37 PageTypes.Add(EHowToPlayPageType::Control_P1);
38 PageTypes.Add(EHowToPlayPageType::Control_P2);
39 PageTypes.Add(EHowToPlayPageType::Control_P3);
40 PageTypes.Add(EHowToPlayPageType::Control_P4);
41 PageTypes.Add(EHowToPlayPageType::Control_P5);
42 PageTypes.Add(EHowToPlayPageType::Control_P6);
43
44 Popup->InitPopup(PageTypes);
45
46 Popup->OnClosedDelegate.BindLambda([this]() {
47 this->StartProcess();
48 });
49 }
50}

다음을 참조함 : StartProcess().

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

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

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