1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Change GameState_t members to lowerCamelCase

This commit is contained in:
Gymnasiast
2025-03-20 19:47:53 +01:00
parent eb30d3c054
commit 4badffcdb6
179 changed files with 2619 additions and 2619 deletions

View File

@@ -84,7 +84,7 @@ static bool ImportS6(MemoryStream& stream, std::unique_ptr<IContext>& context, b
objManager.LoadObjects(loadResult.RequiredObjects);
// TODO: Have a separate GameState and exchange once loaded.
auto& gameState = GetGameState();
auto& gameState = getGameState();
importer->Import(gameState);
GameInit(retainSpatialIndices);
@@ -103,7 +103,7 @@ static bool ImportPark(MemoryStream& stream, std::unique_ptr<IContext>& context,
objManager.LoadObjects(loadResult.RequiredObjects);
// TODO: Have a separate GameState and exchange once loaded.
auto& gameState = GetGameState();
auto& gameState = getGameState();
importer->Import(gameState);
GameInit(retainSpatialIndices);
@@ -118,7 +118,7 @@ static bool ExportSave(MemoryStream& stream, std::unique_ptr<IContext>& context)
auto exporter = std::make_unique<ParkFileExporter>();
exporter->ExportObjectsList = objManager.GetPackableObjects();
auto& gameState = GetGameState();
auto& gameState = getGameState();
exporter->Export(gameState, stream);
return true;
@@ -130,7 +130,7 @@ static void RecordGameStateSnapshot(std::unique_ptr<IContext>& context, MemorySt
auto& snapshot = snapshots->CreateSnapshot();
snapshots->Capture(snapshot);
snapshots->LinkSnapshot(snapshot, GetGameState().CurrentTicks, ScenarioRandState().s0);
snapshots->LinkSnapshot(snapshot, getGameState().currentTicks, ScenarioRandState().s0);
DataSerialiser snapShotDs(true, snapshotStream);
snapshots->SerialiseSnapshot(snapshot, snapShotDs);
}