25 lines
782 B
C++
Executable file
25 lines
782 B
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "Components/ActorComponent.h"
|
|
#include "SpawnEffectsArray.h"
|
|
#include "SpawnEffectsComponent.generated.h"
|
|
|
|
class UMaterialInstance;
|
|
|
|
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
|
|
class USpawnEffectsComponent : public UActorComponent {
|
|
GENERATED_BODY()
|
|
public:
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Replicated, meta=(AllowPrivateAccess=true))
|
|
FSpawnEffectsArray ActiveEffects;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
|
|
UMaterialInstance* BiomeMaterialOverride;
|
|
|
|
public:
|
|
USpawnEffectsComponent();
|
|
virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
|
|
|
|
};
|
|
|