1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00

Remove loadsasnakes (#19192)

* Rename snake_case methods in scenario folder

* Rename snake_case methods in title folder

* Rename snake_case methods in object folder

* Rename snake_case methods in platform folder

* Rename snake_case methods in windows folder

* Rename tile_inspector.h to TileInspectorGlobals.h

* Rename snake_case methods in ui/windows folder
This commit is contained in:
Michael Steenbeek
2023-01-17 20:46:55 +01:00
committed by GitHub
parent 31ea968480
commit bb55c6ce66
100 changed files with 605 additions and 607 deletions

View File

@@ -1205,7 +1205,7 @@ static int32_t ConsoleCommandLoadObject(InteractiveConsole& console, const argum
name[i++] = *ch;
}
const ObjectRepositoryItem* ori = object_repository_find_object_by_name(name);
const ObjectRepositoryItem* ori = ObjectRepositoryFindObjectByName(name);
if (ori == nullptr)
{
console.WriteLineError("Could not find the object.");
@@ -1213,20 +1213,20 @@ static int32_t ConsoleCommandLoadObject(InteractiveConsole& console, const argum
}
const rct_object_entry* entry = &ori->ObjectEntry;
const auto* loadedObject = object_manager_get_loaded_object(ObjectEntryDescriptor(*ori));
const auto* loadedObject = ObjectManagerGetLoadedObject(ObjectEntryDescriptor(*ori));
if (loadedObject != nullptr)
{
console.WriteLineError("Object is already in scenario.");
return 1;
}
loadedObject = object_manager_load_object(entry);
loadedObject = ObjectManagerLoadObject(entry);
if (loadedObject == nullptr)
{
console.WriteLineError("Unable to load object.");
return 1;
}
auto groupIndex = object_manager_get_loaded_object_entry_index(loadedObject);
auto groupIndex = ObjectManagerGetLoadedObjectEntryIndex(loadedObject);
ObjectType objectType = entry->GetType();
if (objectType == ObjectType::Ride)
@@ -1300,7 +1300,7 @@ static int32_t ConsoleCommandCountObjects(InteractiveConsole& console, [[maybe_u
int32_t entryGroupIndex = 0;
for (; entryGroupIndex < object_entry_group_counts[EnumValue(objectType)]; entryGroupIndex++)
{
if (object_entry_get_object(objectType, entryGroupIndex) == nullptr)
if (ObjectEntryGetObject(objectType, entryGroupIndex) == nullptr)
{
break;
}