unitysamples / LyraStarterGame /Source /LyraGame /AbilitySystem /LyraGameplayAbilityTargetData_SingleTargetHit.h
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class FArchive; | |
| struct FGameplayEffectContextHandle; | |
| /** Game-specific additions to SingleTargetHit tracking */ | |
| USTRUCT() | |
| struct FLyraGameplayAbilityTargetData_SingleTargetHit : public FGameplayAbilityTargetData_SingleTargetHit | |
| { | |
| GENERATED_BODY() | |
| FLyraGameplayAbilityTargetData_SingleTargetHit() | |
| : CartridgeID(-1) | |
| { } | |
| virtual void AddTargetDataToContext(FGameplayEffectContextHandle& Context, bool bIncludeActorArray) const override; | |
| /** ID to allow the identification of multiple bullets that were part of the same cartridge */ | |
| UPROPERTY() | |
| int32 CartridgeID; | |
| bool NetSerialize(FArchive& Ar, class UPackageMap* Map, bool& bOutSuccess); | |
| virtual UScriptStruct* GetScriptStruct() const override | |
| { | |
| return FLyraGameplayAbilityTargetData_SingleTargetHit::StaticStruct(); | |
| } | |
| }; | |
| template<> | |
| struct TStructOpsTypeTraits<FLyraGameplayAbilityTargetData_SingleTargetHit> : public TStructOpsTypeTraitsBase2<FLyraGameplayAbilityTargetData_SingleTargetHit> | |
| { | |
| enum | |
| { | |
| WithNetSerializer = true // For now this is REQUIRED for FGameplayAbilityTargetDataHandle net serialization to work | |
| }; | |
| }; | |