MCPcopy Create free account
hub / github.com/arnaud-jamin/Cog / OnGameplayEffectAdded

Method OnGameplayEffectAdded

Source/CogSample/CogSampleCharacter.cpp:633–642  ·  view source on GitHub ↗

----------------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

631
632// ----------------------------------------------------------------------------------------------------------------
633void ACogSampleCharacter::OnGameplayEffectAdded(UAbilitySystemComponent* AbilitySystemComponent, const FGameplayEffectSpec& GameplayEffectSpec, FActiveGameplayEffectHandle Handle)
634{
635#if ENABLE_COG
636 FCogDebug::StartEvent(this, "Effects", GameplayEffectSpec.Def->GetFName(), GameplayEffectSpec.GetDuration() == 0.0f)
637 .AddParam("Name", AbilitySystemComponent->CleanupName(GetNameSafe(GameplayEffectSpec.Def)))
638 .AddParam("Effect Instigator", GetNameSafe(GameplayEffectSpec.GetEffectContext().GetInstigator()))
639 .AddParam("Effect Level", GameplayEffectSpec.GetLevel())
640 .AddParam("Effect Duration", GameplayEffectSpec.GetDuration());
641#endif //ENABLE_COG
642}
643
644// ----------------------------------------------------------------------------------------------------------------
645void ACogSampleCharacter::OnGameplayEffectRemoved(const FActiveGameplayEffect& RemovedGameplayEffect)

Callers

nothing calls this directly

Calls 2

CleanupNameMethod · 0.80
GetInstigatorMethod · 0.80

Tested by

no test coverage detected