Files
FNGameProj/Source/FortniteGame/Public/FortTrajectoryAbilityInterface.h
2024-01-21 00:41:14 +01:00

42 lines
1.4 KiB
C++

#pragma once
#include "CoreMinimal.h"
#include "UObject/Interface.h"
#include "UObject/NoExportTypes.h"
#include "Engine/EngineTypes.h"
#include "Templates/SubclassOf.h"
#include "FortTrajectoryAbilityInterface.generated.h"
class AFortProjectileTrajectory;
UINTERFACE(Blueprintable)
class UFortTrajectoryAbilityInterface : public UInterface {
GENERATED_BODY()
};
class IFortTrajectoryAbilityInterface : public IInterface {
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void UpdateTrajectory();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
AFortProjectileTrajectory* SpawnTrajectoryIndicator(bool bSpawnOnEquip);
UFUNCTION(BlueprintCallable, BlueprintNativeEvent)
bool ShouldOnlyShowTrajectoryOnUse() const;
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void InitTrajectoryVariables();
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void GetProjectileTrajectoryPoints(TArray<FVector>& OutSplinePoints, TArray<FVector>& OutSplineTangents, FHitResult& OutHitResult) const;
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
TSubclassOf<AFortProjectileTrajectory> GetProjectileTrajectoryActor() const;
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
void CleanupTrajectoryIndicatorOnUnequip();
};