Add missing object types to ObjectTypeToString()

This commit is contained in:
Gymnasiast 2021-09-12 18:31:21 +02:00
parent 0f183e9ad2
commit 3e1544aac8
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 19 additions and 3 deletions

View File

@ -60,9 +60,25 @@ namespace OpenRCT2::Scripting
static std::string_view ObjectTypeToString(uint8_t type)
{
static const char* Types[] = { "ride", "small_scenery", "large_scenery", "wall", "banner",
"footpath", "footpath_addition", "scenery_group", "park_entrance", "water",
"stex", "terrain_surface", "terrain_edge", "station", "music" };
static const char* Types[] = {
"ride",
"small_scenery",
"large_scenery",
"wall",
"banner",
"footpath",
"footpath_addition",
"scenery_group",
"park_entrance",
"water",
"stex",
"terrain_surface",
"terrain_edge",
"station",
"music",
"footpath_surface",
"footpath_railings",
};
if (type >= std::size(Types))
return "unknown";
return Types[type];