Creates a BuildingUnit
| 82 | |
| 83 | // Creates a BuildingUnit |
| 84 | void FloorspaceReverseTranslator_Impl::Dispatch(const FSBuildingUnit& fsEntity) { |
| 85 | BuildingUnit buildingUnit(m_model); |
| 86 | buildingUnit.setName(fsEntity.name()); |
| 87 | boost::optional<RenderingColor> renderingColor = RenderingColor::fromColorString(fsEntity.color(), m_model); |
| 88 | if (renderingColor.has_value()) { |
| 89 | buildingUnit.setRenderingColor(*renderingColor); |
| 90 | } |
| 91 | MapHandles(fsEntity, buildingUnit); |
| 92 | } |
| 93 | |
| 94 | void FloorspaceReverseTranslator_Impl::Dispatch(const FSBuildingType& entity) { |
| 95 | // TODO: building_type does not appear to go anywhere |
no test coverage detected