16 #include "CoreMinimal.h" 18 #include "Subsystems/WorldSubsystem.h" 20 #include "CarlaLightSubsystem.generated.h" 25 UCLASS(Blueprintable, BlueprintType)
35 void Initialize(FSubsystemCollectionBase& Collection)
override;
37 void Deinitialize()
override;
39 void RegisterLight(UCarlaLight* CarlaLight);
41 void UnregisterLight(UCarlaLight* CarlaLight);
43 UFUNCTION(BlueprintCallable)
44 bool IsUpdatePending()
const;
46 UFUNCTION(BlueprintCallable)
47 int32 NumLights()
const {
51 std::vector<carla::rpc::LightState> GetLights(FString Client);
55 std::vector<carla::rpc::LightState> LightsToSet,
56 bool DiscardClient =
false);
58 UCarlaLight* GetLight(
int Id);
65 void SetDayNightCycle(
const bool active);
69 void SetClientStatesdirty(FString ClientThatUpdate);
TMap< int, UCarlaLight *> Lights
TMap< int, UCarlaLight *> & GetLights()
TMap< FString, bool > ClientStates