CARLA
TrafficLightInterface.h
Go to the documentation of this file.
1 // Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #pragma once
8 
9 #include "CoreMinimal.h"
10 #include "Object.h"
11 #include "TrafficLightState.h"
12 #include "TrafficLightInterface.generated.h"
13 
14 UINTERFACE(BlueprintType)
15 class CARLA_API UTrafficLightInterface : public UInterface
16 {
17  GENERATED_BODY()
18 };
19 
21 {
22  GENERATED_BODY()
23 
24 public:
25  UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, Category = "Traffic Light Interface")
26  void LightChanged(ETrafficLightState NewLightState);
27 };
void LightChanged(ETrafficLightState NewLightState)