unitysamples / LyraStarterGame /Source /LyraGame /AbilitySystem /LyraGameplayAbilityTargetData_SingleTargetHit.h
Download LyraStarterGame/Source/LyraGame/AbilitySystem/LyraGameplayAbilityTargetData_SingleTargetHit.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/AbilitySystem/LyraGameplayAbilityTargetData_SingleTargetHit.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/AbilitySystem/LyraGameplayAbilityTargetData_SingleTargetHit.h
-
curl -L -o LyraGameplayAbilityTargetData_SingleTargetHit.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/AbilitySystem/LyraGameplayAbilityTargetData_SingleTargetHit.h
1.33 kB
| // 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 | |
| }; | |
| }; | |