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

Method Import

src/openrct2/park/ParkFile.cpp:158–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 void Import(GameState_t& gameState)
159 {
160 auto& os = *_os;
161 ReadWriteTilesChunk(gameState, os);
162 ReadWriteBannersChunk(gameState, os);
163 ReadWriteRidesChunk(gameState, os);
164 ReadWriteEntitiesChunk(gameState, os);
165 ReadWriteScenarioChunk(gameState, os);
166 ReadWriteGeneralChunk(gameState, os);
167 ReadWriteParkChunk(gameState, os);
168 ReadWriteClimateChunk(gameState, os);
169 ReadWriteResearchChunk(gameState, os);
170 ReadWriteNotificationsChunk(gameState, os);
171 ReadWriteInterfaceChunk(gameState, os);
172 ReadWriteCheatsChunk(gameState, os);
173 ReadWriteRestrictedObjectsChunk(gameState, os);
174 ReadWritePluginStorageChunk(gameState, os);
175 if (os.getHeader().targetVersion < 0x4)
176 {
177 UpdateTrackElementsRideType();
178 }
179
180 // Initial cash will eventually be removed
181 gameState.scenarioOptions.initialCash = gameState.park.cash;
182 }
183
184 void Save(GameState_t& gameState, IStream& stream, int16_t compressionLevel)
185 {

Callers 1

ImportMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected