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;
std::vector< Light > GetTurnedOffLights(LightGroup type=LightGroup::None) const
size_t _on_tick_register_id
size_t _on_light_update_register_id
LightManager(const LightManager &other)
std::vector< Light > GetTurnedOnLights(LightGroup type=LightGroup::None) const
std::vector< LightGroup > GetLightGroup(std::vector< Light > &lights) const
void SetIntensity(std::vector< Light > &lights, float intensity)
std::vector< bool > IsActive(std::vector< Light > &lights) const
std::vector< Color > GetColor(std::vector< Light > &lights) const
const LightState & RetrieveLightState(LightId id) const
void SetLightState(std::vector< Light > &lights, LightState state)
std::unordered_map< LightId, LightState > _lights_changes
void TurnOff(std::vector< Light > &lights)
void SetLightStateNoLock(LightId id, const LightState &new_state)
detail::WeakEpisodeProxy _episode
void SetColor(std::vector< Light > &lights, Color color)
void QueryLightsStateToServer()
void TurnOn(std::vector< Light > &lights)
std::vector< float > GetIntensity(std::vector< Light > &lights) const
void SetDayNightCycle(const bool active)
std::unordered_map< LightId, LightState > _lights_state
void SetLightGroup(std::vector< Light > &lights, LightGroup group)
void SetEpisode(detail::WeakEpisodeProxy episode)
void SetActive(std::vector< Light > &lights, std::vector< bool > &active)
std::unordered_map< LightId, Light > _lights
void UpdateServerLightsState(bool discard_client=false)
std::vector< LightState > GetLightState(std::vector< Light > &lights) const
std::vector< Light > GetAllLights(LightGroup type=LightGroup::None) const
EpisodeProxyImpl< EpisodeProxyPointerType::Weak > WeakEpisodeProxy
This file contains definitions of common data structures used in traffic manager.