aboutsummaryrefslogtreecommitdiffstats
path: root/include/components.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/components.hpp')
-rw-r--r--include/components.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/components.hpp b/include/components.hpp
index 805e8b2..00ac8fa 100644
--- a/include/components.hpp
+++ b/include/components.hpp
@@ -335,9 +335,20 @@ class RenderSystem : public entityx::System<RenderSystem> {
private:
std::string loadTexString;
Texture loadTexResult;
+
+ float fadeIntensity;
+ bool fadeIn;
public:
+ RenderSystem(void)
+ : fadeIntensity(1), fadeIn(true) {}
+
Texture loadTexture(const std::string& file);
void update(entityx::EntityManager &en, entityx::EventManager &ev, entityx::TimeDelta dt) override;
+
+ void fade(void);
+ void fadeLock(void);
+ void unfade(void);
+ void unfadeLock(void);
};
class DialogSystem : public entityx::System<DialogSystem>, public entityx::Receiver<DialogSystem> {