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 66 of file fx_engine.cpp.hpp.
66 {
68 return FxPtr();
69 }
70
71 FxPtr removedFx;
72 bool ok =
mEffects.get(index, &removedFx);
73 if (!ok) {
74 return FxPtr();
75 }
76
78
82 }
83
84 return removedFx;
85}
bool mDurationSet
Flag indicating if a new transition has been set.
int mCurrId
Id of the current effect.
u16 mDuration
Duration of the current transition.
IntFxMap mEffects
Collection of effects.
References mCurrId, mDuration, mDurationSet, and mEffects.