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

#include <GC_DamageText.h>

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

Public 멤버 함수

FORCEINLINE UTexture2D * GetTexture (const int32 Index, const bool IsCritical) const
 

Protected 멤버 함수

bool ShouldAttachDamageText (AActor *Target) const
 
TArray< UTexture2D * > GetNumberTextures (int32 Damage, bool IsCritical, int32 &OutDamageTextLength) const
 

Protected 속성

TArray< TObjectPtr< UTexture2D > > CriticalNumberTextures
 
TArray< TObjectPtr< UTexture2D > > DefaultNumberTextures
 

멤버 함수 문서화

◆ GetNumberTextures()

TArray< UTexture2D * > UGC_DamageText::GetNumberTextures ( int32  Damage,
bool  IsCritical,
int32 &  OutDamageTextLength 
) const
protected
17{
18 TArray<UTexture2D*> Result;
19 OutDamageStringLength = 0;
20
21 if (Damage == 0)
22 {
23 Result.Add(GetTexture(0, IsCritical));
24 OutDamageStringLength = 1;
25 return Result;
26 }
27
28 int Temp = Damage;
29
30 while (Temp > 0)
31 {
32 const int Index = FMath::Clamp(Temp % 10, 0, 9);
33 Result.Add(GetTexture(Index, IsCritical));
34 Temp /= 10;
35 OutDamageStringLength++;
36 }
37
38 const int Length = OutDamageStringLength / 2;
39
40 for (int index = 0; index < Length; ++index)
41 {
42 Result.Swap(index, OutDamageStringLength - index - 1);
43 }
44
45 return Result;
46}
FORCEINLINE UTexture2D * GetTexture(const int32 Index, const bool IsCritical) const
Definition GC_DamageText.h:18

다음을 참조함 : GetTexture().

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

◆ GetTexture()

FORCEINLINE UTexture2D * UGC_DamageText::GetTexture ( const int32  Index,
const bool  IsCritical 
) const
inline
19 {
20 return IsCritical ? CriticalNumberTextures[Index] : DefaultNumberTextures[Index];
21 }
TArray< TObjectPtr< UTexture2D > > CriticalNumberTextures
Definition GC_DamageText.h:33
TArray< TObjectPtr< UTexture2D > > DefaultNumberTextures
Definition GC_DamageText.h:36

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

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

◆ ShouldAttachDamageText()

bool UGC_DamageText::ShouldAttachDamageText ( AActor *  Target) const
protected

프록시의 플러터 부착 설정을 사용하며 일반 피해 대상은 기존 부착 동작을 유지합니다.

10{
11 const ADamageProxy* Proxy = Cast<ADamageProxy>(Target);
12 return Proxy == nullptr || Proxy->ShouldAttachDamageText();
13}
Definition DamageProxy.h:17
FORCEINLINE bool ShouldAttachDamageText() const
Definition DamageProxy.h:69

다음을 참조함 : ADamageProxy::ShouldAttachDamageText().

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

멤버 데이터 문서화

◆ CriticalNumberTextures

TArray<TObjectPtr<UTexture2D> > UGC_DamageText::CriticalNumberTextures
protected

◆ DefaultNumberTextures

TArray<TObjectPtr<UTexture2D> > UGC_DamageText::DefaultNumberTextures
protected

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