1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 10:45:16 +01:00

Merge pull request #24034 from Gymnasiast/refactor/gamestate-t-lower-camel-case

Change GameState_t members to lowerCamelCase
This commit is contained in:
Matt
2025-03-21 23:32:02 +02:00
committed by GitHub
179 changed files with 2619 additions and 2619 deletions

View File

@@ -112,9 +112,9 @@ std::string EntitiesChecksum::ToString() const
EntityBase* TryGetEntity(EntityId entityIndex)
{
auto& gameState = GetGameState();
auto& gameState = getGameState();
const auto idx = entityIndex.ToUnderlying();
return idx >= kMaxEntities ? nullptr : &gameState.Entities[idx].base;
return idx >= kMaxEntities ? nullptr : &gameState.entities[idx].base;
}
EntityBase* GetEntity(EntityId entityIndex)
@@ -175,8 +175,8 @@ void ResetAllEntities()
FreeEntity(*spr);
}
auto& gameState = GetGameState();
std::fill(std::begin(gameState.Entities), std::end(gameState.Entities), Entity_t());
auto& gameState = getGameState();
std::fill(std::begin(gameState.entities), std::end(gameState.entities), Entity_t());
OpenRCT2::RideUse::GetHistory().Clear();
OpenRCT2::RideUse::GetTypeHistory().Clear();
for (int32_t i = 0; i < kMaxEntities; ++i)