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_DelayedForLoopActionDelayedForLoop (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
25{
26 if (Count <= 0)
27 {
28 OnCompleted.Broadcast(0);
29 SetReadyToDestroy();
30 return;
31 }
32
33 OnLoop.Broadcast(CurrentIndex);
36}
void ScheduleNext()
Definition CK_BPFunctionLibrary.cpp:39
int32 CurrentIndex
Definition CK_BPFunctionLibrary.h:50
int32 Count
Definition CK_BPFunctionLibrary.h:49
FDelayedForLoopOutputPin OnLoop
Definition CK_BPFunctionLibrary.h:30
FDelayedForLoopOutputPin OnCompleted
Definition CK_BPFunctionLibrary.h:33
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ DelayedForLoop()

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

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

매개변수
Count반복 횟수
Delay각 반복 사이 대기 시간 (초)
13{
14 UCK_DelayedForLoopAction* Action = NewObject<UCK_DelayedForLoopAction>();
15 Action->CachedWorldContext = WorldContextObject;
16 Action->Count = Count;
17 Action->Delay = Delay;
18 Action->CurrentIndex = 0;
19 Action->RegisterWithGameInstance(WorldContextObject);
20 return Action;
21}
Definition CK_BPFunctionLibrary.h:25
float Delay
Definition CK_BPFunctionLibrary.h:51
TWeakObjectPtr< UObject > CachedWorldContext
Definition CK_BPFunctionLibrary.h:55

◆ ScheduleNext()

void UCK_DelayedForLoopAction::ScheduleNext ( )
private
40{
41 auto Function = [this](float) -> bool
42 {
43 if (CurrentIndex >= Count)
44 {
45 OnCompleted.Broadcast(CurrentIndex);
46 SetReadyToDestroy();
47 return false;
48 }
49
50 OnLoop.Broadcast(CurrentIndex);
52 return true;
53 };
54
55 auto DelyedLambda = FTickerDelegate::CreateWeakLambda(this, Function);
56 TickerHandle = FTSTicker::GetCoreTicker().AddTicker(DelyedLambda, Delay);
57}
FTSTicker::FDelegateHandle TickerHandle
Definition CK_BPFunctionLibrary.h:57
이 함수를 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ CachedWorldContext

TWeakObjectPtr<UObject> UCK_DelayedForLoopAction::CachedWorldContext
private

◆ Count

int32 UCK_DelayedForLoopAction::Count = 0
private

◆ CurrentIndex

int32 UCK_DelayedForLoopAction::CurrentIndex = 0
private

◆ Delay

float UCK_DelayedForLoopAction::Delay = 0.f
private

◆ OnCompleted

FDelayedForLoopOutputPin UCK_DelayedForLoopAction::OnCompleted

◆ OnLoop

FDelayedForLoopOutputPin UCK_DelayedForLoopAction::OnLoop

◆ TickerHandle

FTSTicker::FDelegateHandle UCK_DelayedForLoopAction::TickerHandle
private

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