MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ClearInactiveEffects

Function ClearInactiveEffects

TombEngine/Game/effects/effects.h:261–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259
260template <typename TEffect>
261void 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
270Particle* GetFreeParticle();
271

Callers 7

UpdateRipplesFunction · 0.85
UpdateDecalsFunction · 0.85
UpdateDripsFunction · 0.85
UpdateMethod · 0.85
UpdateBubblesFunction · 0.85
UpdateFootprintsFunction · 0.85

Calls 3

eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected