3 #include "BuildingHighlights.h"
6 #include "BuildingHighlightModelRepository.h"
11 #include <unordered_set>
12 #include <unordered_map>
16 namespace BuildingHighlights
31 void Update(
float deltaSeconds)
override;
33 typedef std::unordered_multimap<std::string, BuildingHighlightId> TBuildingIdToModelIds;
35 void OnItemAdded(
const ItemType& item)
override;
37 void OnItemRemoved(
const ItemType& item)
override;
39 bool HasViewFor(
const BuildingHighlightId& modelId)
const;
49 bool TryFindModelInBuildingIdMap(
const BuildingHighlightModel& model, TBuildingIdToModelIds::const_iterator& out_iter)
const;
55 void GetModelIdsForBuildingId(
const std::string& buildingId, std::vector<BuildingHighlightId>& out_modelIds)
const;
69 std::unordered_set<const BuildingHighlightModel*> m_modelsNeedingViewRebind;
71 TBuildingIdToModelIds m_buildingIdToModelIds;