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

#include <CK_BPFunctionLibrary.h>

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

Public 멤버 함수

virtual void Activate () override
 

정적 Public 멤버 함수

static UCK_DelayedForLoopAction * DelayedForLoop (UObject *WorldContextObject, int32 Count, float Delay)
 

Public 속성

FDelayedForLoopOutputPin OnLoop
 
FDelayedForLoopOutputPin OnCompleted
 

Private 멤버 함수

void ScheduleNext ()
 

Private 속성

int32 Count = 0
 
int32 CurrentIndex = 0
 
float Delay = 0.f
 
TWeakObjectPtr< UObject > CachedWorldContext
 
FTSTicker::FDelegateHandle TickerHandle
 

멤버 함수 문서화

◆ Activate()

void UCK_DelayedForLoopAction::Activate ( )
overridevirtual
84{
85 if (Count <= 0)
86 {
87 OnCompleted.Broadcast(0);
88 SetReadyToDestroy();
89 return;
90 }
91
92 OnLoop.Broadcast(CurrentIndex);
95}
void ScheduleNext()
Definition CK_BPFunctionLibrary.cpp:98
int32 CurrentIndex
Definition CK_BPFunctionLibrary.h:88
int32 Count
Definition CK_BPFunctionLibrary.h:87
FDelayedForLoopOutputPin OnLoop
Definition CK_BPFunctionLibrary.h:68
FDelayedForLoopOutputPin OnCompleted
Definition CK_BPFunctionLibrary.h:71

다음을 참조함 : Count, CurrentIndex, OnCompleted, OnLoop, ScheduleNext().

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

◆ DelayedForLoop()

UCK_DelayedForLoopAction * UCK_DelayedForLoopAction::DelayedForLoop ( UObject *  WorldContextObject,
int32  Count,
float  Delay 
)
static

Count 횟수만큼 Delay 간격으로 반복함.

매개변수
Count반복 횟수
Delay각 반복 사이 대기 시간 (초)
72{
73 UCK_DelayedForLoopAction* Action = NewObject<UCK_DelayedForLoopAction>();
74 Action->CachedWorldContext = WorldContextObject;
75 Action->Count = Count;
76 Action->Delay = Delay;
77 Action->CurrentIndex = 0;
78 Action->RegisterWithGameInstance(WorldContextObject);
79 return Action;
80}
Definition CK_BPFunctionLibrary.h:63
float Delay
Definition CK_BPFunctionLibrary.h:89
TWeakObjectPtr< UObject > CachedWorldContext
Definition CK_BPFunctionLibrary.h:93

다음을 참조함 : CachedWorldContext, Count, CurrentIndex, Delay.

◆ ScheduleNext()

void UCK_DelayedForLoopAction::ScheduleNext ( )
private
99{
100 auto Function = [this](float) -> bool
101 {
102 if (CurrentIndex >= Count)
103 {
104 OnCompleted.Broadcast(CurrentIndex);
105 SetReadyToDestroy();
106 return false;
107 }
108
109 OnLoop.Broadcast(CurrentIndex);
110 CurrentIndex++;
111 return true;
112 };
113
114 auto DelyedLambda = FTickerDelegate::CreateWeakLambda(this, Function);
115 TickerHandle = FTSTicker::GetCoreTicker().AddTicker(DelyedLambda, Delay);
116}
FTSTicker::FDelegateHandle TickerHandle
Definition CK_BPFunctionLibrary.h:95

다음을 참조함 : Count, CurrentIndex, Delay, OnCompleted, OnLoop, TickerHandle.

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

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

멤버 데이터 문서화

◆ CachedWorldContext

TWeakObjectPtr<UObject> UCK_DelayedForLoopAction::CachedWorldContext
private

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

◆ Count

int32 UCK_DelayedForLoopAction::Count = 0
private

다음에 의해서 참조됨 : Activate(), DelayedForLoop(), ScheduleNext().

◆ CurrentIndex

int32 UCK_DelayedForLoopAction::CurrentIndex = 0
private

다음에 의해서 참조됨 : Activate(), DelayedForLoop(), ScheduleNext().

◆ Delay

float UCK_DelayedForLoopAction::Delay = 0.f
private

다음에 의해서 참조됨 : DelayedForLoop(), ScheduleNext().

◆ OnCompleted

FDelayedForLoopOutputPin UCK_DelayedForLoopAction::OnCompleted

다음에 의해서 참조됨 : Activate(), ScheduleNext().

◆ OnLoop

FDelayedForLoopOutputPin UCK_DelayedForLoopAction::OnLoop

다음에 의해서 참조됨 : Activate(), ScheduleNext().

◆ TickerHandle

FTSTicker::FDelegateHandle UCK_DelayedForLoopAction::TickerHandle
private

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


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