31 virtual void BeginDestroy()
override;
42 void AddRoute(
float probability,
const TArray<FVector> &routePoints);
51 virtual void PostEditChangeProperty(FPropertyChangedEvent &PropertyChangedEvent)
override;
55 virtual void BeginPlay()
override;
57 virtual void EndPlay(EEndPlayReason::Type EndPlayReason)
override;
60 void OnTriggerBeginOverlap(
66 const FHitResult &SweepResult);
70 UPROPERTY(EditAnywhere)
73 UPROPERTY(BlueprintReadWrite, Category = "Traffic Routes", EditAnywhere)
74 TArray<USplineComponent *> Routes;
76 UPROPERTY(BlueprintReadWrite, Category = "Traffic Routes", EditAnywhere, EditFixedSize)
77 TArray<
float> Probabilities;
79 UPROPERTY(BlueprintReadWrite, Category = "Traffic Routes", EditAnywhere, EditFixedSize)
80 bool bIsIntersection = false;