| 176 | } |
| 177 | |
| 178 | std::optional<std::string> ScriptConfig::GetTextfile(TextfileType type, CompanyID slot) const |
| 179 | { |
| 180 | if (slot == CompanyID::Invalid() || this->GetInfo() == nullptr) return std::nullopt; |
| 181 | |
| 182 | return ::GetTextfile(type, (slot == OWNER_DEITY) ? GAME_DIR : AI_DIR, this->GetInfo()->GetMainScript()); |
| 183 | } |
| 184 | |
| 185 | void ScriptConfig::SetToLoadData(ScriptInstance::ScriptData *data) |
| 186 | { |
no test coverage detected