30 lines
821 B
C++
Executable file
30 lines
821 B
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "Components/ActorComponent.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "MolotovComponent.generated.h"
|
|
|
|
class AActor;
|
|
class UDebrisPositioning;
|
|
|
|
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
|
|
class UMolotovComponent : public UActorComponent {
|
|
GENERATED_BODY()
|
|
public:
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, meta=(AllowPrivateAccess=true))
|
|
UDebrisPositioning* Positioning;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
TSubclassOf<AActor> BurningFlamesClass;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
float Radius;
|
|
|
|
public:
|
|
UMolotovComponent();
|
|
UFUNCTION(BlueprintCallable)
|
|
void Trigger();
|
|
|
|
};
|
|
|