1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +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

@@ -303,20 +303,20 @@ private:
{ "players", numPlayers },
};
const auto& gameState = GetGameState();
const auto& gameState = getGameState();
const auto& date = GetDate();
json_t mapSize = { { "x", gameState.MapSize.x - 2 }, { "y", gameState.MapSize.y - 2 } };
json_t mapSize = { { "x", gameState.mapSize.x - 2 }, { "y", gameState.mapSize.y - 2 } };
json_t gameInfo = {
{ "mapSize", mapSize },
{ "day", date.GetMonthTicks() },
{ "month", date.GetMonthsElapsed() },
{ "guests", gameState.NumGuestsInPark },
{ "parkValue", gameState.Park.Value },
{ "guests", gameState.numGuestsInPark },
{ "parkValue", gameState.park.Value },
};
if (!(gameState.Park.Flags & PARK_FLAGS_NO_MONEY))
if (!(gameState.park.Flags & PARK_FLAGS_NO_MONEY))
{
gameInfo["cash"] = gameState.Cash;
gameInfo["cash"] = gameState.cash;
}
root["gameInfo"] = gameInfo;