RealtimeStyleTransferRuntime/Source/LyraGame/Feedback/NumberPops/LyraNumberPopComponent_Niag...

41 lines
1.1 KiB
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
2022-09-13 07:18:28 +00:00
#include "Containers/Array.h"
#include "HAL/Platform.h"
2022-05-23 18:41:30 +00:00
#include "LyraNumberPopComponent.h"
2022-09-13 07:18:28 +00:00
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "LyraNumberPopComponent_NiagaraText.generated.h"
class ULyraDamagePopStyleNiagara;
2022-09-13 07:18:28 +00:00
class UNiagaraComponent;
class UObject;
2022-05-23 18:41:30 +00:00
UCLASS(Blueprintable)
class ULyraNumberPopComponent_NiagaraText : public ULyraNumberPopComponent
{
GENERATED_BODY()
public:
ULyraNumberPopComponent_NiagaraText(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());
//~ULyraNumberPopComponent interface
virtual void AddNumberPop(const FLyraNumberPopRequest& NewRequest) override;
//~End of ULyraNumberPopComponent interface
protected:
TArray<int32> DamageNumberArray;
/** Style patterns to attempt to apply to the incoming number pops */
UPROPERTY(EditDefaultsOnly, Category = "Number Pop|Style")
2022-09-13 07:18:28 +00:00
TObjectPtr<ULyraDamagePopStyleNiagara> Style;
2022-05-23 18:41:30 +00:00
//Niagara Component used to display the damage
UPROPERTY(EditDefaultsOnly, Category = "Number Pop|Style")
2022-09-13 07:18:28 +00:00
TObjectPtr<UNiagaraComponent> NiagaraComp;
2022-05-23 18:41:30 +00:00
};