16 PrimaryActorTick.bCanEverTick =
true;
17 PrimaryActorTick.bStartWithTickEnabled =
true;
18 SceneComponent = CreateDefaultSubobject<USceneComponent>(TEXT(
"RootComponent"));
36 Controller->ResetState();
47 Super::Tick(DeltaTime);
55 if (!Episode->bIsPrimaryServer)
59 auto* Replayer = Episode->GetReplayer();
62 if(Replayer->IsEnabled())
76 UE_LOG(LogCarla, Error, TEXT(
"TrafficLightGroup::Tick() JunctionId=%d has NO CONTROLLERS!"),
JunctionId);
TArray< TObjectPtr< UTrafficLightController > > Controllers
virtual void Tick(float DeltaTime) override
TObjectPtr< USceneComponent > SceneComponent
void SetFrozenGroup(bool InFreeze)
void AddController(UTrafficLightController *Controller)
int GetJunctionId() const
static UCarlaEpisode * GetCurrentEpisode(const UObject *WorldContextObject)
Maps a controller from OpenDrive.
void SetGroup(ATrafficLightGroup *Group)
bool AdvanceTimeAndCycleFinished(float DeltaTime)