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

#include <GE_HitStunComponent.h>

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

Public 멤버 함수

 UGE_HitStunComponent ()
 
virtual bool CanGameplayEffectApply (const FActiveGameplayEffectsContainer &ActiveGEContainer, const FGameplayEffectSpec &GESpec) const override
 
virtual void OnGameplayEffectApplied (FActiveGameplayEffectsContainer &ActiveGEContainer, FGameplayEffectSpec &GESpec, FPredictionKey &PredictionKey) const override
 

정적 Private 멤버 함수

static bool IsAttackInterrupt (const FGameplayEffectSpec &Spec, const FGameplayTagContainer &TargetTags)
 

생성자 & 소멸자 문서화

◆ UGE_HitStunComponent()

UGE_HitStunComponent::UGE_HitStunComponent ( )
8{
9#if WITH_EDITORONLY_DATA
10 EditorFriendlyName = TEXT("Hit Stun");
11#endif
12}

멤버 함수 문서화

◆ CanGameplayEffectApply()

bool UGE_HitStunComponent::CanGameplayEffectApply ( const FActiveGameplayEffectsContainer &  ActiveGEContainer,
const FGameplayEffectSpec &  GESpec 
) const
overridevirtual
15{
16 const UAbilitySystemComponent* TargetASC = ActiveGEContainer.Owner;
17
18 if (IsValid(TargetASC) == false)
19 {
20 return false;
21 }
22
23 FGameplayTagContainer TargetTags;
24 TargetASC->GetOwnedGameplayTags(TargetTags);
25
26 // 슈퍼아머 상태가 아니 거나, IsAttackInterrupt 성공 시 HitStun 적용
27 return TargetTags.HasTag(TAG_CHARACTER_STATE_ISSUPERARMOR) == false || IsAttackInterrupt(GESpec, TargetTags);
28}
static bool IsAttackInterrupt(const FGameplayEffectSpec &Spec, const FGameplayTagContainer &TargetTags)
Definition GE_HitStunComponent.cpp:39

다음을 참조함 : IsAttackInterrupt().

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

◆ IsAttackInterrupt()

bool UGE_HitStunComponent::IsAttackInterrupt ( const FGameplayEffectSpec &  Spec,
const FGameplayTagContainer &  TargetTags 
)
staticprivate
40{
41 /* 해당 공격의 Asset Tag에 CanInterruptAttack태그가 있을 경우, 해당 Target이 InterruptWindow 태그가 활성화 상태인 경우 */
42 return Spec.CapturedSourceTags.GetSpecTags().HasTagExact(TAG_CHARACTER_ACTION_CANINTERRUPTATTACK) && TargetTags.HasTag(TAG_CHARACTER_STATE_INTERRUPTWINDOW);
43}

다음에 의해서 참조됨 : CanGameplayEffectApply(), OnGameplayEffectApplied().

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

◆ OnGameplayEffectApplied()

void UGE_HitStunComponent::OnGameplayEffectApplied ( FActiveGameplayEffectsContainer &  ActiveGEContainer,
FGameplayEffectSpec &  GESpec,
FPredictionKey &  PredictionKey 
) const
overridevirtual
31{
32 Super::OnGameplayEffectApplied(ActiveGEContainer, GESpec, PredictionKey);
33
34 // 만약 히트 스턴 GE가 전달되고, 만약 IsAttackInterrupt 통과한 경우 캔슬한 상황이기에 태그에 값을 보내줌. -> 해당 값이 1이면 AttackInterrupt 애니 재생, 0이면 일반 hit 애니 재생
35 const bool bAttackInterrupted = IsAttackInterrupt(GESpec, GESpec.CapturedTargetTags.GetActorTags());
36 GESpec.SetSetByCallerMagnitude(TAG_DATA_HITSTUN_ATTACKINTERRUPTED, bAttackInterrupted ? 1.0f : 0.0f);
37}

다음을 참조함 : IsAttackInterrupt().

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

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