5#include "CoreMinimal.h"
8#include "Components/BoxComponent.h"
9#include "Components/CapsuleComponent.h"
10#include "Components/SphereComponent.h"
11#include "GameFramework/Actor.h"
12#include "DefaultProjectiles.generated.h"
15UCLASS(Abstract, Blueprintable, BlueprintType)
23 CapsuleComponent = CreateDefaultSubobject<UCapsuleComponent>(TEXT(
"CapsuleComponent"));
24 RootComponent = CapsuleComponent;
25 MeshComponent->SetupAttachment(CapsuleComponent);
29 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"Projectile")
30 TObjectPtr<UCapsuleComponent> CapsuleComponent;
34UCLASS(Abstract, Blueprintable, BlueprintType)
42 SphereComponent = CreateDefaultSubobject<USphereComponent>(TEXT(
"SphereComponent"));
43 RootComponent = SphereComponent;
44 MeshComponent->SetupAttachment(SphereComponent);
48 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"Projectile")
49 TObjectPtr<USphereComponent> SphereComponent;
53UCLASS(Abstract, Blueprintable, BlueprintType)
61 BoxComponent = CreateDefaultSubobject<UBoxComponent>(TEXT(
"BoxComponent"));
62 RootComponent = BoxComponent;
63 MeshComponent->SetupAttachment(BoxComponent);
67 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category =
"Projectile")
68 TObjectPtr<UBoxComponent> BoxComponent;
Definition DefaultProjectiles.h:55
ABoxShapeProjectile()
Definition DefaultProjectiles.h:59
Definition DefaultProjectiles.h:17
ACapsuleShapeProjectile()
Definition DefaultProjectiles.h:21
Definition DamagedProjectile.h:12
Definition DefaultProjectiles.h:36
ASphereShapeProjectile()
Definition DefaultProjectiles.h:40