MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ExportSave

Function ExportSave

test/tests/S6ImportExportTests.cpp:110–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static 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
123static void RecordGameStateSnapshot(std::unique_ptr<IContext>& context, MemoryStream& snapshotStream)
124{

Callers 1

TESTFunction · 0.85

Calls 2

GetPackableObjectsMethod · 0.80
ExportMethod · 0.80

Tested by

no test coverage detected