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 멤버 함수

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
7{
8 TArray<UTexture2D*> Result;
9 OutDamageStringLength = 0;
10 int Temp = Damage;
11
12 while (Temp > 0)
13 {
14 const int Index = FMath::Clamp(Temp % 10, 0, 9);
15 Result.Add(GetTexture(Index, IsCritical));
16 Temp /= 10;
17 OutDamageStringLength++;
18 }
19
20 const int Length = OutDamageStringLength / 2;
21
22 for (int index = 0; index <= Length; ++index)
23 {
24 Result.Swap(index, OutDamageStringLength - index - 1);
25 }
26
27 return Result;
28}
FORCEINLINE UTexture2D * GetTexture(const int32 Index, const bool IsCritical) const
Definition GC_DamageText.h:18
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ 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:29
TArray< TObjectPtr< UTexture2D > > DefaultNumberTextures
Definition GC_DamageText.h:32
이 함수를 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ CriticalNumberTextures

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

◆ DefaultNumberTextures

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

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