forked from rosebudai/OpenRCT2-Web
Add JSON loading for footpath items
This commit is contained in:
1 parent
e8b28965cc
commit
d56f1445f8
6 files changed
+123
-17
No files matched your search
@@ -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