| 119 | } |
| 120 | |
| 121 | std::optional<ModSet> ModSet::FromString(const std::string& s) |
| 122 | { |
| 123 | if (auto pDesc = Registry::Get().LookupText(s)) |
| 124 | { |
| 125 | return ModSet{ pDesc->code }; |
| 126 | } |
| 127 | return {}; |
| 128 | } |
| 129 | |
| 130 | std::optional<ModSet> ModSet::SingleModFromCode(uint32_t p) |
| 131 | { |
nothing calls this directly
no test coverage detected