refactor: changed ObjectType enum to strong enum

code does not compile yet
This commit is contained in:
Łukasz Pękalski committed 2020-11-11 16:07:01 +01:00
1 parent 6e5105ab3b
commit 832fd69822
26 files changed
+209 -104

No files matched your search

+2 -2
View File
@@ -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)