| 181 | } |
| 182 | |
| 183 | bool BaseEngine::saveWorld(Handle::WorldHandle world, const std::string& file) |
| 184 | { |
| 185 | json j; |
| 186 | world.get().exportWorld(j); |
| 187 | |
| 188 | // Save |
| 189 | std::ofstream f(file); |
| 190 | if (!f.is_open()) |
| 191 | return false; |
| 192 | |
| 193 | f << Utils::iso_8859_1_to_utf8(j.dump(4)); |
| 194 | f.close(); |
| 195 | |
| 196 | return true; |
| 197 | } |
| 198 | |
| 199 | void BaseEngine::setPaused(bool paused) |
| 200 | { |
nothing calls this directly
no test coverage detected