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

Function exportEntity

src/OpenLoco/src/S5/S5Entity.cpp:456–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454 }
455
456 S5::Entity exportEntity(const OpenLoco::Entity& src)
457 {
458 if (src.baseType == EntityBaseType::effect)
459 {
460 return exportEffectEntity(*src.asBase<EffectEntity>());
461 }
462 else if (src.baseType == EntityBaseType::vehicle)
463 {
464 return exportVehicleEntity(*src.asBase<Vehicles::VehicleBase>());
465 }
466 else
467 {
468 return exportNullEntity(src);
469 }
470 }
471
472 static OpenLoco::Entity importNullEntity(const S5::Entity& src)
473 {

Callers 1

exportGameStateFunction · 0.85

Calls 3

exportEffectEntityFunction · 0.85
exportVehicleEntityFunction · 0.85
exportNullEntityFunction · 0.85

Tested by

no test coverage detected