void TrafficCongestionExample::Update(float dt) { if(!m_hasCalled && !m_world.Initialising()) { m_hasCalled = true; const int roadId = 0; Eegeo::Streaming::MortonKey key = Eegeo::Streaming::MortonKey::CreateFromString("01131232132001"); bool success = m_trafficCongestionService.TrySetCongestionFor( key, roadId, Eegeo::TrafficCongestion::CongestionLevel::Heavy); Eegeo_TTY("%s congestion level on road id %d for morton key %s\n", success ? "Successfully set" : "Failed to set", roadId, key.ToString().c_str()); } }
void EnvironmentNotifierExampleTerrainStreamObserver::RemovedStreamingResourceFromSceneGraph(const Eegeo::Streaming::MortonKey& key) { Eegeo_TTY("Removing Terrain Resource :: %s\n", key.ToString().c_str()); m_spheres.erase(key); }
void EnvironmentNotifierExampleTerrainStreamObserver::AddedStreamingResourceToSceneGraph(const Eegeo::Streaming::MortonKey& key) { Eegeo_TTY("Adding Terrain Resource :: %s\n", key.ToString().c_str()); AddSphere(key); }