From cdc8f4ad535d39adb89f238c6f9b2c68d71f6151 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Jul 2016 22:42:45 +0300 Subject: Add support for permanent particle effect. Attribute name "particle". This effect cant be played at start, if existing "start-particle" but will be played if effect continues. --- src/statuseffect.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/statuseffect.h') diff --git a/src/statuseffect.h b/src/statuseffect.h index 7ef6f212f..83a721852 100644 --- a/src/statuseffect.h +++ b/src/statuseffect.h @@ -57,6 +57,12 @@ class StatusEffect final */ Particle *getStartParticle() const A_WARN_UNUSED; + /** + * Creates the particle effect associated with this status effect, if + * possible. + */ + Particle *getParticle() const A_WARN_UNUSED; + /** * Retrieves the status icon for this effect, if applicable */ @@ -70,6 +76,7 @@ class StatusEffect final std::string mMessage; std::string mSFXEffect; std::string mStartParticleEffect; + std::string mParticleEffect; std::string mIcon; std::string mAction; std::string mName; -- cgit v1.2.3-60-g2f50