42 lines
905 B
C++
42 lines
905 B
C++
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "GameFramework/Actor.h"
|
|
#include "PwnCombatPlatformerPath.generated.h"
|
|
|
|
class USplineComponent;
|
|
|
|
UCLASS()
|
|
class PAWN_API APwnCombatPlatformerPath : public AActor {
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
APwnCombatPlatformerPath();
|
|
|
|
void UpdateFlattenSpline(const float InputKey);
|
|
|
|
protected:
|
|
virtual void BeginPlay() override;
|
|
|
|
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
|
|
|
|
public:
|
|
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Components")
|
|
TObjectPtr<USplineComponent> Spline;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Combat Platformer Path")
|
|
bool Reversed;
|
|
|
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category="Combat Platformer Path")
|
|
bool SwapCamera;
|
|
|
|
UPROPERTY(Transient, BlueprintReadOnly)
|
|
TObjectPtr<USplineComponent> FlattenedSpline;
|
|
|
|
UPROPERTY()
|
|
int32 MinKey;
|
|
|
|
UPROPERTY()
|
|
int32 MaxKey;
|
|
};
|