DRG-Femboy-Voice/Source/FSD/Public/ProjectileLauncherComponent.h
2025-04-15 12:39:31 -07:00

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);
};