31 lines
1004 B
C++
31 lines
1004 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "LyraGameplayAbilityTargetData_SingleTargetHit.h"
|
|
|
|
#include "LyraGameplayEffectContext.h"
|
|
#include "Serialization/Archive.h"
|
|
|
|
struct FGameplayEffectContextHandle;
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
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;
|
|
}
|