mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 12:03:07 +01:00
refactor: changed ObjectType enum to strong enum
code does not compile yet
This commit is contained in:
@@ -320,7 +320,7 @@ namespace ObjectFactory
|
||||
return result;
|
||||
}
|
||||
|
||||
static uint8_t ParseObjectType(const std::string& s)
|
||||
static ObjectType ParseObjectType(const std::string& s)
|
||||
{
|
||||
if (s == "ride")
|
||||
return ObjectType::Ride;
|
||||
@@ -348,7 +348,7 @@ namespace ObjectFactory
|
||||
return ObjectType::TerrainEdge;
|
||||
if (s == "station")
|
||||
return ObjectType::Station;
|
||||
return 0xFF;
|
||||
return ObjectType::None;
|
||||
}
|
||||
|
||||
std::unique_ptr<Object> CreateObjectFromZipFile(IObjectRepository& objectRepository, const std::string_view& path)
|
||||
|
||||
Reference in New Issue
Block a user