1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Replace snakes in Class names OpenRCT2/N*-P* (#19227)

* Replace snakes in Class names OpenRCT2/N*-P*

* Rename PODDate (and TimeOfDay for good measure)

Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
This commit is contained in:
Duncan
2023-01-20 05:24:44 +00:00
committed by GitHub
parent e110c631f1
commit 9deed6d98a
45 changed files with 266 additions and 280 deletions

View File

@@ -195,7 +195,7 @@ ObjectEntryIndex ObjectList::Find(ObjectType type, std::string_view identifier)
*
* rct2: 0x006AB344
*/
void ObjectCreateIdentifierName(char* string_buffer, size_t size, const rct_object_entry* object)
void ObjectCreateIdentifierName(char* string_buffer, size_t size, const RCTObjectEntry* object)
{
snprintf(string_buffer, size, "%.8s/%4X%4X", object->name, object->flags, object->checksum);
}
@@ -222,7 +222,7 @@ void ObjectGetTypeEntryIndex(size_t index, ObjectType* outObjectType, ObjectEntr
*outEntryIndex = static_cast<ObjectEntryIndex>(index);
}
void ObjectEntryGetNameFixed(utf8* buffer, size_t bufferSize, const rct_object_entry* entry)
void ObjectEntryGetNameFixed(utf8* buffer, size_t bufferSize, const RCTObjectEntry* entry)
{
bufferSize = std::min(static_cast<size_t>(DAT_NAME_LENGTH) + 1, bufferSize);
std::memcpy(buffer, entry->name, bufferSize - 1);