Color muxer effects can now be (partially) configured by user.

TODO: move color muxer effects from spells into spell config
This commit is contained in:
Ivan Savenko
2022-12-21 23:29:56 +02:00
parent 8a9a7b9650
commit 41b87088d5
10 changed files with 220 additions and 101 deletions
+6
View File
@@ -19,6 +19,7 @@ struct BattleTriggerEffect;
VCMI_LIB_NAMESPACE_END
struct ColorMuxerEffect;
class CAnimation;
class Canvas;
class BattleInterface;
@@ -43,7 +44,12 @@ class BattleEffectsController
/// list of current effects that are being displayed on screen (spells & creature abilities)
std::vector<BattleEffect> battleEffects;
std::map<std::string, ColorMuxerEffect> colorMuxerEffects;
void loadColorMuxers();
public:
const ColorMuxerEffect &getMuxerEffect(const std::string & name);
BattleEffectsController(BattleInterface & owner);
void startAction(const BattleAction* action);