| 259 | |
| 260 | template <typename TEffect> |
| 261 | void ClearInactiveEffects(std::vector<TEffect>& effects) |
| 262 | { |
| 263 | effects.erase( |
| 264 | std::remove_if( |
| 265 | effects.begin(), effects.end(), |
| 266 | [](const auto& effect) { return (effect.Life <= 0.0f); }), |
| 267 | effects.end()); |
| 268 | } |
| 269 | |
| 270 | Particle* GetFreeParticle(); |
| 271 |
no test coverage detected