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 56 of file fx_engine.cpp.
56 {
58 return FxPtr();
59 }
60
61 FxPtr removedFx;
62 bool ok =
mEffects.get(index, &removedFx);
63 if (!ok) {
64 return FxPtr();
65 }
66
68
72 }
73
74 return removedFx;
75}
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.