MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / importEntity

Function importEntity

src/OpenLoco/src/S5/S5Entity.cpp:865–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863 }
864
865 OpenLoco::Entity importEntity(const S5::Entity& src)
866 {
867 const auto baseType = static_cast<EntityBaseType>(src.base.baseType);
868 if (baseType == EntityBaseType::effect)
869 {
870 return importEffectEntity(src);
871 }
872 else if (baseType == EntityBaseType::vehicle)
873 {
874 return importVehicleEntity(src);
875 }
876 else
877 {
878 return importNullEntity(src);
879 }
880 }
881}

Callers 1

importGameStateFunction · 0.85

Calls 3

importEffectEntityFunction · 0.85
importVehicleEntityFunction · 0.85
importNullEntityFunction · 0.85

Tested by

no test coverage detected