This commit is contained in:
abouteiller
2025-08-28 17:45:36 +02:00
parent 1e157b6876
commit e37555b201
39 changed files with 95 additions and 46 deletions

View File

@ -6,37 +6,13 @@
#include "GameFramework/Actor.h"
#include "SplineNode.generated.h"
class USplineComponent;
const uint8 bClassic = 0b00;
const uint8 bInverted = 0b01;
const uint8 bDualSens = 0b10;
class SplineHolder
USTRUCT()
struct FSplineNodeOld
{
SplineHolder()
{
Spline = nullptr;
Direction = bDualSens;
}
GENERATED_USTRUCT_BODY()
USplineComponent* Spline;
uint8 Direction : 3;
};
UCLASS()
class TUTOBEGGINER_API ASplineNode : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
ASplineNode();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
TArray<SplineHolder> Splines;
// UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = HUD)
// TArray<AActor*> Splines;
FString Name;
};