From bdd8ebd12336269844734210999276708f675b93 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sat, 14 Dec 2019 23:55:30 +0100 Subject: [PATCH] AnimationController: added missing declaration --- src/Animation/AnimationController.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Animation/AnimationController.cpp b/src/Animation/AnimationController.cpp index 7f7d9fa..683bc2c 100644 --- a/src/Animation/AnimationController.cpp +++ b/src/Animation/AnimationController.cpp @@ -2,6 +2,11 @@ #include "Animation/AllAnimations.h" +const constexpr + std::array + AnimationController::AnimationNames; + + AnimationController::AnimationController(Fader *fader) : m_fader(fader), m_animation(nullptr), m_frame(0) { @@ -38,6 +43,10 @@ void AnimationController::changeAnimation(AnimationController::DefaultAnimation changeAnimation(std::unique_ptr(new FireAnimation(m_fader, true)), transition); break; + case SNOWFALL: + changeAnimation(std::unique_ptr(new SnowfallAnimation(m_fader)), transition); + break; + default: return; // unknown id, do nothing }