1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Rename ObjectType enum to follow recent code style (#23810)

This commit is contained in:
Aaron van Geffen
2025-02-13 23:07:55 +01:00
committed by GitHub
parent b9b2c96c97
commit bb94ee8bc0
75 changed files with 446 additions and 446 deletions

View File

@@ -1110,7 +1110,7 @@ static void ConsoleCommandLoadObject(InteractiveConsole& console, const argument
auto groupIndex = ObjectManagerGetLoadedObjectEntryIndex(loadedObject);
ObjectType objectType = entry->GetType();
if (objectType == ObjectType::Ride)
if (objectType == ObjectType::ride)
{
// Automatically research the ride so it's supported by the game.
const auto* rideEntry = GetRideEntryByIndex(groupIndex);
@@ -1129,7 +1129,7 @@ static void ConsoleCommandLoadObject(InteractiveConsole& console, const argument
ResearchResetCurrentItem();
gSilentResearch = false;
}
else if (objectType == ObjectType::SceneryGroup)
else if (objectType == ObjectType::sceneryGroup)
{
ResearchInsertSceneryGroupEntry(groupIndex, true);
@@ -1172,7 +1172,7 @@ constexpr auto _objectTypeNames = std::to_array<StringId>({
STR_OBJECT_SELECTION_PEEP_NAMES,
STR_OBJECT_SELECTION_PEEP_ANIMATIONS,
});
static_assert(_objectTypeNames.size() == EnumValue(ObjectType::Count));
static_assert(_objectTypeNames.size() == EnumValue(ObjectType::count));
static void ConsoleCommandCountObjects(InteractiveConsole& console, [[maybe_unused]] const arguments_t& argv)
{