mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add missing object types to ObjectTypeToString()
This commit is contained in:
parent
0f183e9ad2
commit
3e1544aac8
|
@ -60,9 +60,25 @@ namespace OpenRCT2::Scripting
|
||||||
|
|
||||||
static std::string_view ObjectTypeToString(uint8_t type)
|
static std::string_view ObjectTypeToString(uint8_t type)
|
||||||
{
|
{
|
||||||
static const char* Types[] = { "ride", "small_scenery", "large_scenery", "wall", "banner",
|
static const char* Types[] = {
|
||||||
"footpath", "footpath_addition", "scenery_group", "park_entrance", "water",
|
"ride",
|
||||||
"stex", "terrain_surface", "terrain_edge", "station", "music" };
|
"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))
|
if (type >= std::size(Types))
|
||||||
return "unknown";
|
return "unknown";
|
||||||
return Types[type];
|
return Types[type];
|
||||||
|
|
Loading…
Reference in New Issue