Requests removal of an effect from the engine, which might not happen immediately (for example the Fx needs to finish a transition).
- Parameters
-
index | The index of the effect to remove. |
- Returns
- A pointer to the removed effect, or nullptr if the index was invalid.
Definition at line 52 of file fx_engine.cpp.
52 {
54 return FxPtr();
55 }
56
57 FxPtr removedFx;
58 bool ok =
mEffects.get(index, &removedFx);
59 if (!ok) {
60 return FxPtr();
61 }
62
64
68 }
69
70 return removedFx;
71}
bool mDurationSet
Flag indicating if a new transition has been set.
int mCurrId
Id of the current effect.
IntFxMap mEffects
Collection of effects.
uint16_t mDuration
Duration of the current transition.
References mCurrId, mDuration, mDurationSet, and mEffects.