| 108 | } |
| 109 | |
| 110 | static bool ExportSave(MemoryStream& stream, std::unique_ptr<IContext>& context) |
| 111 | { |
| 112 | auto& objManager = context->GetObjectManager(); |
| 113 | |
| 114 | auto exporter = std::make_unique<ParkFileExporter>(); |
| 115 | exporter->ExportObjectsList = objManager.GetPackableObjects(); |
| 116 | |
| 117 | auto& gameState = getGameState(); |
| 118 | exporter->Export(gameState, stream, kParkFileSaveCompressionLevel); |
| 119 | |
| 120 | return true; |
| 121 | } |
| 122 | |
| 123 | static void RecordGameStateSnapshot(std::unique_ptr<IContext>& context, MemoryStream& snapshotStream) |
| 124 | { |
no test coverage detected