#include <CarlaLightSubsystem.h>
Public Member Functions | |
void | Deinitialize () override |
UCarlaLight * | GetLight (int Id) |
std::vector< carla::rpc::LightState > | GetLights (FString Client) |
TMap< int, UCarlaLight *> & | GetLights () |
void | Initialize (FSubsystemCollectionBase &Collection) override |
bool | IsUpdatePending () const |
int32 | NumLights () const |
void | RegisterLight (UCarlaLight *CarlaLight) |
void | SetDayNightCycle (const bool active) |
void | SetLights (FString Client, std::vector< carla::rpc::LightState > LightsToSet, bool DiscardClient=false) |
void | UnregisterLight (UCarlaLight *CarlaLight) |
Private Member Functions | |
void | SetClientStatesdirty (FString ClientThatUpdate) |
Private Attributes | |
TMap< FString, bool > | ClientStates |
TMap< int, UCarlaLight *> | Lights |
Definition at line 26 of file CarlaLightSubsystem.h.
|
override |
Definition at line 18 of file CarlaLightSubsystem.cpp.
UCarlaLight * UCarlaLightSubsystem::GetLight | ( | int | Id | ) |
Definition at line 98 of file CarlaLightSubsystem.cpp.
References Lights.
Referenced by CarlaReplayerHelper::ProcessReplayerLightScene(), and FFrameData::ProcessReplayerLightScene().
std::vector< carla::rpc::LightState > UCarlaLightSubsystem::GetLights | ( | FString | Client | ) |
Definition at line 59 of file CarlaLightSubsystem.cpp.
References ClientStates, and Lights.
Referenced by ACarlaRecorder::AddExistingActors(), and FCarlaServer::FPimpl::BindActions().
|
inline |
Definition at line 60 of file CarlaLightSubsystem.h.
|
override |
Definition at line 13 of file CarlaLightSubsystem.cpp.
bool UCarlaLightSubsystem::IsUpdatePending | ( | ) | const |
Definition at line 47 of file CarlaLightSubsystem.cpp.
References ClientStates.
Referenced by FCarlaEngine::OnPostTick().
|
inline |
Definition at line 47 of file CarlaLightSubsystem.h.
void UCarlaLightSubsystem::RegisterLight | ( | UCarlaLight * | CarlaLight | ) |
Definition at line 23 of file CarlaLightSubsystem.cpp.
References Lights, and SetClientStatesdirty().
|
private |
Definition at line 119 of file CarlaLightSubsystem.cpp.
References ClientStates.
Referenced by RegisterLight(), and UnregisterLight().
void UCarlaLightSubsystem::SetDayNightCycle | ( | const bool | active | ) |
Definition at line 107 of file CarlaLightSubsystem.cpp.
Referenced by FCarlaServer::FPimpl::BindActions().
void UCarlaLightSubsystem::SetLights | ( | FString | Client, |
std::vector< carla::rpc::LightState > | LightsToSet, | ||
bool | DiscardClient = false |
||
) |
Definition at line 74 of file CarlaLightSubsystem.cpp.
References ClientStates, and Lights.
Referenced by FCarlaServer::FPimpl::BindActions().
void UCarlaLightSubsystem::UnregisterLight | ( | UCarlaLight * | CarlaLight | ) |
Definition at line 38 of file CarlaLightSubsystem.cpp.
References Lights, and SetClientStatesdirty().
|
private |
Definition at line 74 of file CarlaLightSubsystem.h.
Referenced by GetLights(), IsUpdatePending(), SetClientStatesdirty(), and SetLights().
|
private |
Definition at line 71 of file CarlaLightSubsystem.h.
Referenced by GetLight(), GetLights(), RegisterLight(), SetLights(), and UnregisterLight().