| 162 | } |
| 163 | |
| 164 | std::string ScriptConfig::SettingsToString() const |
| 165 | { |
| 166 | if (this->settings.empty()) return {}; |
| 167 | |
| 168 | std::string result; |
| 169 | for (const auto &item : this->settings) { |
| 170 | format_append(result, "{}={},", item.first, item.second); |
| 171 | } |
| 172 | |
| 173 | /* Remove the last ','. */ |
| 174 | result.resize(result.size() - 1); |
| 175 | return result; |
| 176 | } |
| 177 | |
| 178 | std::optional<std::string> ScriptConfig::GetTextfile(TextfileType type, CompanyID slot) const |
| 179 | { |
no test coverage detected