Download LyraStarterGame/Source/LyraGame/Feedback/NumberPops/LyraNumberPopComponent.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.66 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Feedback/NumberPops/LyraNumberPopComponent.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Feedback/NumberPops/LyraNumberPopComponent.h
-
curl -L -o LyraNumberPopComponent.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Feedback/NumberPops/LyraNumberPopComponent.h
1.66 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| class UObject; | |
| struct FFrame; | |
| USTRUCT(BlueprintType) | |
| struct FLyraNumberPopRequest | |
| { | |
| GENERATED_BODY() | |
| // The world location to create the number pop at | |
| UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Lyra|Number Pops") | |
| FVector WorldLocation; | |
| // Tags related to the source/cause of the number pop (for determining a style) | |
| UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Lyra|Number Pops") | |
| FGameplayTagContainer SourceTags; | |
| // Tags related to the target of the number pop (for determining a style) | |
| UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Lyra|Number Pops") | |
| FGameplayTagContainer TargetTags; | |
| // The number to display | |
| UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Lyra|Number Pops") | |
| int32 NumberToDisplay = 0; | |
| // Whether the number is 'critical' or not (@TODO: move to a tag) | |
| UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Lyra|Number Pops") | |
| bool bIsCriticalDamage = false; | |
| FLyraNumberPopRequest() | |
| : WorldLocation(ForceInitToZero) | |
| { | |
| } | |
| }; | |
| UCLASS(Abstract) | |
| class ULyraNumberPopComponent : public UControllerComponent | |
| { | |
| GENERATED_BODY() | |
| public: | |
| ULyraNumberPopComponent(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); | |
| /** Adds a damage number to the damage number list for visualization */ | |
| UFUNCTION(BlueprintCallable, Category = Foo) | |
| virtual void AddNumberPop(const FLyraNumberPopRequest& NewRequest) {} | |
| }; | |