23 lines
712 B
C++
Executable file
23 lines
712 B
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "ProjectileLauncherBaseComponent.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "ProjectileLauncherComponent.generated.h"
|
|
|
|
class AProjectileBase;
|
|
|
|
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
|
|
class UProjectileLauncherComponent : public UProjectileLauncherBaseComponent {
|
|
GENERATED_BODY()
|
|
public:
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
TSubclassOf<AProjectileBase> ProjectileClass;
|
|
|
|
public:
|
|
UProjectileLauncherComponent();
|
|
UFUNCTION(BlueprintAuthorityOnly, BlueprintCallable)
|
|
void SetProjectileClass(TSubclassOf<AProjectileBase> NewProjectileClass);
|
|
|
|
};
|
|
|