// Copyright Epic Games, Inc. All Rights Reserved. #include "LyraGameplayAbilityTargetData_SingleTargetHit.h" #include "LyraGameplayEffectContext.h" ////////////////////////////////////////////////////////////////////// void FLyraGameplayAbilityTargetData_SingleTargetHit::AddTargetDataToContext(FGameplayEffectContextHandle& Context, bool bIncludeActorArray) const { FGameplayAbilityTargetData_SingleTargetHit::AddTargetDataToContext(Context, bIncludeActorArray); // Add game-specific data if (FLyraGameplayEffectContext* TypedContext = FLyraGameplayEffectContext::ExtractEffectContext(Context)) { TypedContext->CartridgeID = CartridgeID; } } bool FLyraGameplayAbilityTargetData_SingleTargetHit::NetSerialize(FArchive& Ar, class UPackageMap* Map, bool& bOutSuccess) { FGameplayAbilityTargetData_SingleTargetHit::NetSerialize(Ar, Map, bOutSuccess); Ar << CartridgeID; return true; }