| 89 | } |
| 90 | |
| 91 | static Entity exportVehicleCrashParticle(const OpenLoco::VehicleCrashParticle& src) |
| 92 | { |
| 93 | Entity dst{}; |
| 94 | S5::VehicleCrashParticle& dstParticle = reinterpret_cast<S5::VehicleCrashParticle&>(dst); |
| 95 | dstParticle.base = exportEntityBase(src, enumValue(EffectType::vehicleCrashParticle), 0); |
| 96 | dstParticle.timeToLive = src.timeToLive; |
| 97 | dstParticle.frame = src.frame; |
| 98 | dstParticle.colourSchemePrimary = enumValue(src.colourScheme.primary); |
| 99 | dstParticle.colourSchemeSecondary = enumValue(src.colourScheme.secondary); |
| 100 | dstParticle.crashedSpriteBase = src.crashedSpriteBase; |
| 101 | dstParticle.velocity = src.velocity; |
| 102 | dstParticle.accelerationX = src.accelerationX; |
| 103 | dstParticle.accelerationY = src.accelerationY; |
| 104 | dstParticle.accelerationZ = src.accelerationZ; |
| 105 | return dst; |
| 106 | } |
| 107 | |
| 108 | static Entity exportExplosionCloud(const OpenLoco::ExplosionCloud& src) |
| 109 | { |
no test coverage detected