#include <GE_HitStunComponent.h>
|
| | UGE_HitStunComponent () |
| |
| virtual bool | CanGameplayEffectApply (const FActiveGameplayEffectsContainer &ActiveGEContainer, const FGameplayEffectSpec &GESpec) const override |
| |
| virtual void | OnGameplayEffectApplied (FActiveGameplayEffectsContainer &ActiveGEContainer, FGameplayEffectSpec &GESpec, FPredictionKey &PredictionKey) const override |
| |
|
| 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
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 |
◆ OnGameplayEffectApplied()
| void UGE_HitStunComponent::OnGameplayEffectApplied |
( |
FActiveGameplayEffectsContainer & |
ActiveGEContainer, |
|
|
FGameplayEffectSpec & |
GESpec, |
|
|
FPredictionKey & |
PredictionKey |
|
) |
| const |
|
overridevirtual |
31{
32 Super::OnGameplayEffectApplied(ActiveGEContainer, GESpec, PredictionKey);
33
34
35 const bool bAttackInterrupted =
IsAttackInterrupt(GESpec, GESpec.CapturedTargetTags.GetActorTags());
36 GESpec.SetSetByCallerMagnitude(TAG_DATA_HITSTUN_ATTACKINTERRUPTED, bAttackInterrupted ? 1.0f : 0.0f);
37}
다음을 참조함 : IsAttackInterrupt().
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: