Initialize Git with LFS for binary assets and add standard Unreal Engine .gitignore/.gitattributes. Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
900 B
C++
34 lines
900 B
C++
// REALMS IN RUIN. Copyright (c) 2025 Trevor Edwards. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "GameFramework/Actor.h"
|
|
#include "RIREffectActor.generated.h"
|
|
|
|
class UGameplayEffect;
|
|
|
|
UCLASS()
|
|
class REALMSINRUIN_API ARIREffectActor : public AActor
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
// Sets default values for this actor's properties
|
|
ARIREffectActor();
|
|
|
|
|
|
protected:
|
|
// Called when the game starts or the actor is spawned into the world
|
|
virtual void BeginPlay() override;
|
|
|
|
UFUNCTION(BlueprintCallable)
|
|
void ApplyEffectToTarget(AActor* TargetActor, TSubclassOf<UGameplayEffect> GamePlayEffectClass);
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Applied Effects")
|
|
TSubclassOf<UGameplayEffect> InstantGameplayEffectClass;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Applied Effects")
|
|
TSubclassOf<UGameplayEffect> DurationGameplayEffectClass;
|
|
};
|