1
0
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:
Ted John
2017-12-10 17:42:39 +00:00
committed by Gymnasiast
parent e8b28965cc
commit d56f1445f8
6 changed files with 123 additions and 17 deletions

View File

@@ -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;
}