11 #include <unordered_map> 12 #include <unordered_set> 52 void TurnOn(std::vector<Light>& lights);
53 void TurnOff(std::vector<Light>& lights);
54 void SetActive(std::vector<Light>& lights, std::vector<bool>& active);
55 std::vector<bool>
IsActive(std::vector<Light>& lights)
const;
60 void SetColor(std::vector<Light>& lights, std::vector<Color>& colors);
61 std::vector<Color>
GetColor(std::vector<Light>& lights)
const;
63 void SetIntensity(std::vector<Light>& lights,
float intensity);
64 void SetIntensity(std::vector<Light>& lights, std::vector<float>& intensities);
65 std::vector<float>
GetIntensity(std::vector<Light>& lights)
const;
68 void SetLightGroup(std::vector<Light>& lights, std::vector<LightGroup>& groups);
69 std::vector<LightGroup>
GetLightGroup(std::vector<Light>& lights)
const;
72 void SetLightState(std::vector<Light>& lights, std::vector<LightState>& states);
73 std::vector<LightState>
GetLightState(std::vector<Light>& lights)
const;
void QueryLightsStateToServer()
std::unordered_map< LightId, LightState > _lights_changes
const LightState & RetrieveLightState(LightId id) const
void TurnOn(std::vector< Light > &lights)
std::vector< Light > GetTurnedOnLights(LightGroup type=LightGroup::None) const
void SetColor(std::vector< Light > &lights, Color color)
This file contains definitions of common data structures used in traffic manager. ...
void SetLightStateNoLock(LightId id, const LightState &new_state)
void UpdateServerLightsState(bool discard_client=false)
void SetActive(std::vector< Light > &lights, std::vector< bool > &active)
size_t _on_light_update_register_id
detail::WeakEpisodeProxy _episode
std::vector< float > GetIntensity(std::vector< Light > &lights) const
void SetEpisode(detail::WeakEpisodeProxy episode)
LightManager(const LightManager &other)
std::vector< LightState > GetLightState(std::vector< Light > &lights) const
std::unordered_map< LightId, Light > _lights
void SetIntensity(std::vector< Light > &lights, float intensity)
std::unordered_map< LightId, LightState > _lights_state
std::vector< Color > GetColor(std::vector< Light > &lights) const
std::vector< Light > GetTurnedOffLights(LightGroup type=LightGroup::None) const
std::vector< bool > IsActive(std::vector< Light > &lights) const
void SetLightState(std::vector< Light > &lights, LightState state)
void TurnOff(std::vector< Light > &lights)
std::vector< LightGroup > GetLightGroup(std::vector< Light > &lights) const
size_t _on_tick_register_id
void SetLightGroup(std::vector< Light > &lights, LightGroup group)
void SetDayNightCycle(const bool active)
EpisodeProxyImpl< EpisodeProxyPointerType::Weak > WeakEpisodeProxy
std::vector< Light > GetAllLights(LightGroup type=LightGroup::None) const