mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 04:53:12 +01:00
Add JSON loading for footpath items
This commit is contained in:
@@ -207,18 +207,10 @@ namespace ObjectFactory
|
||||
|
||||
static uint8 ParseObjectType(const std::string &s)
|
||||
{
|
||||
if (s == "ride")
|
||||
{
|
||||
return OBJECT_TYPE_RIDE;
|
||||
}
|
||||
else if (s == "footpath")
|
||||
{
|
||||
return OBJECT_TYPE_PATHS;
|
||||
}
|
||||
else if (s == "park_entrance")
|
||||
{
|
||||
return OBJECT_TYPE_PARK_ENTRANCE;
|
||||
}
|
||||
if (s == "ride") return OBJECT_TYPE_RIDE;
|
||||
if (s == "footpath") return OBJECT_TYPE_PATHS;
|
||||
if (s == "footpath_item") return OBJECT_TYPE_PATH_BITS;
|
||||
if (s == "park_entrance") return OBJECT_TYPE_PARK_ENTRANCE;
|
||||
return 0xFF;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user