47 lines
1.5 KiB
C++
47 lines
1.5 KiB
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "GameFramework/Actor.h"
|
|
#include "LMProjectile.generated.h"
|
|
|
|
class UStaticMeshComponent;
|
|
class USphereComponent;
|
|
class UProjectileMovementComponent;
|
|
|
|
UCLASS()
|
|
class LEGUMEMIX_API ALMProjectile : public AActor
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
ALMProjectile();
|
|
virtual void Tick(float DeltaTime) override;
|
|
|
|
protected:
|
|
virtual void BeginPlay() override;
|
|
|
|
// UFUNCTION(BlueprintCallable)
|
|
// void OnSphereOverlap(UPrimitiveComponent* OverlappedComponent, AActor* OtherActor, UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult);
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (AllowPrivateAccess = "true"), Category = "Legumix")
|
|
float AttackingDamage = 15.f;
|
|
|
|
private:
|
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=Legumix, meta = (AllowPrivateAccess = true))
|
|
TObjectPtr<USphereComponent> ProjectileCollision;
|
|
|
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=Legumix, meta = (AllowPrivateAccess = true))
|
|
TObjectPtr<UStaticMeshComponent> ProjectileMesh;
|
|
|
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=Legumix, meta = (AllowPrivateAccess = true))
|
|
TObjectPtr<UProjectileMovementComponent> ProjectileMovement;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Legumix, meta = (AllowPrivateAccess = true))
|
|
float MaxRange = 1500.f;
|
|
|
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=Legumix, meta = (AllowPrivateAccess = true))
|
|
FVector InitialLocation;
|
|
};
|