mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 07:14:31 +01:00
Add footpath surface and railings objects from NSF
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
#include "EntranceObject.h"
|
||||
#include "FootpathItemObject.h"
|
||||
#include "FootpathObject.h"
|
||||
#include "FootpathRailingsObject.h"
|
||||
#include "FootpathSurfaceObject.h"
|
||||
#include "LargeSceneryObject.h"
|
||||
#include "MusicObject.h"
|
||||
#include "Object.h"
|
||||
@@ -356,6 +358,12 @@ namespace ObjectFactory
|
||||
case ObjectType::Music:
|
||||
result = std::make_unique<MusicObject>(entry);
|
||||
break;
|
||||
case ObjectType::FootpathSurface:
|
||||
result = std::make_unique<FootpathSurfaceObject>(entry);
|
||||
break;
|
||||
case ObjectType::FootpathRailings:
|
||||
result = std::make_unique<FootpathRailingsObject>(entry);
|
||||
break;
|
||||
default:
|
||||
throw std::runtime_error("Invalid object type");
|
||||
}
|
||||
@@ -392,6 +400,10 @@ namespace ObjectFactory
|
||||
return ObjectType::Station;
|
||||
if (s == "music")
|
||||
return ObjectType::Music;
|
||||
if (s == "footpath_surface")
|
||||
return ObjectType::FootpathSurface;
|
||||
if (s == "footpath_railings")
|
||||
return ObjectType::FootpathRailings;
|
||||
return ObjectType::None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user