| 1937 | } |
| 1938 | |
| 1939 | df::unit_labor lookup_labor_by_name(std::string name) |
| 1940 | { |
| 1941 | // We should accept incorrect casing, there is no ambiguity. |
| 1942 | std::transform(name.begin(), name.end(), name.begin(), ::toupper); |
| 1943 | |
| 1944 | FOR_ENUM_ITEMS(unit_labor, test_labor) |
| 1945 | { |
| 1946 | if (name == ENUM_KEY_STR(unit_labor, test_labor)) |
| 1947 | { |
| 1948 | return test_labor; |
| 1949 | } |
| 1950 | } |
| 1951 | |
| 1952 | return df::unit_labor::NONE; |
| 1953 | } |
| 1954 | |
| 1955 | DFhackCExport command_result plugin_enable(color_ostream &out, bool enable) |
| 1956 | { |
no test coverage detected