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

Method HandleDamageDealt

Source/CogSample/CogSampleCharacter.cpp:573–580  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

571
572//--------------------------------------------------------------------------------------------------------------------------
573void ACogSampleCharacter::HandleDamageDealt(const FCogSampleDamageEventParams& Params)
574{
575 OnDamageDealt.Broadcast(Params);
576
577#if ENABLE_COG
578 FCogDebugMetric::AddMetric(this, "Damage Dealt", Params.MitigatedDamage, Params.UnmitigatedDamage, false);
579#endif //ENABLE_COG
580}
581
582//--------------------------------------------------------------------------------------------------------------------------
583bool ACogSampleCharacter::IsDead() const

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected