* Record a static StringID for getting translated later. * @param source Source grf-local GRFStringID. * @param func Function to call to set the mapping result. */
| 40 | * @param func Function to call to set the mapping result. |
| 41 | */ |
| 42 | void AddStringForMapping(GRFStringID source, std::function<void(StringID)> &&func) |
| 43 | { |
| 44 | func(STR_UNDEFINED); |
| 45 | _string_to_grf_mapping.emplace_back(_cur_gps.grffile->grfid, source, std::move(func)); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Record a static StringID for getting translated later. |
no outgoing calls
no test coverage detected