| 47 | } |
| 48 | |
| 49 | std::string GetStyleResourcesSuffix(MapStyle mapStyle) |
| 50 | { |
| 51 | #ifdef BUILD_DESIGNER |
| 52 | return kSuffixDesignTool; |
| 53 | #else |
| 54 | // We use the same resources for all light/day and dark/night styles |
| 55 | // to avoid textures duplication and package size increasing. |
| 56 | switch (mapStyle) |
| 57 | { |
| 58 | case MapStyleDefaultDark: |
| 59 | case MapStyleVehicleDark: |
| 60 | case MapStyleOutdoorsDark: return kSuffixDark; |
| 61 | case MapStyleDefaultLight: |
| 62 | case MapStyleVehicleLight: |
| 63 | case MapStyleOutdoorsLight: return kSuffixLight; |
| 64 | case MapStyleMerged: return {}; |
| 65 | |
| 66 | case MapStyleCount: break; |
| 67 | } |
| 68 | LOG(LWARNING, ("Unknown map style", mapStyle)); |
| 69 | return kSuffixLight; |
| 70 | #endif // BUILD_DESIGNER |
| 71 | } |
| 72 | } // namespace |
| 73 | |
| 74 | StyleReader::StyleReader() : m_mapStyle(kDefaultMapStyle) {} |