10#include <util/ue-header-guard-begin.h>
11#include "CoreMinimal.h"
12#include "Components/SceneComponent.h"
13#include "Components/BoxComponent.h"
14#include <util/ue-header-guard-end.h>
18#include "SignComponent.generated.h"
36UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
37class CARLA_API USignComponent :
public USceneComponent
44 UFUNCTION(Category = "Traffic Sign", BlueprintPure)
45 const FString &GetSignId() const;
47 UFUNCTION(Category = "Traffic Sign", BlueprintCallable)
48 void SetSignId(const FString &Id);
51 virtual
void InitializeSign(const
cr::Map &Map);
55 const TArray<UBoxComponent*> GetEffectTriggerVolume() const;
59 virtual
void BeginPlay() override;
62 virtual
void TickComponent(
float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
64 TArray<
std::pair<
cr::RoadId, const
cre::RoadInfoSignal*>>
65 GetAllReferencesToThisSignal(const
cr::Map &Map);
67 const
cr::Signal* GetSignal(const
cr::Map &Map) const;
71 UBoxComponent* GenerateTriggerBox(const FTransform &BoxTransform,
74 UBoxComponent* GenerateTriggerBox(const FTransform &BoxTransform,
75 const FVector &BoxSize);
79 UPROPERTY(Category = "Traffic Sign", EditAnywhere)
83 TArray<TObjectPtr<UBoxComponent>> EffectTriggerVolumes;
std::map< std::string, unsigned int > road
This file contains definitions of common data structures used in traffic manager.