AnimationController: added missing declaration
This commit is contained in:
parent
af3adf99db
commit
bdd8ebd123
|
@ -2,6 +2,11 @@
|
|||
|
||||
#include "Animation/AllAnimations.h"
|
||||
|
||||
const constexpr
|
||||
std::array<const char*, AnimationController::NUM_DEFAULT_ANIMATIONS>
|
||||
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<Animation>(new FireAnimation(m_fader, true)), transition);
|
||||
break;
|
||||
|
||||
case SNOWFALL:
|
||||
changeAnimation(std::unique_ptr<Animation>(new SnowfallAnimation(m_fader)), transition);
|
||||
break;
|
||||
|
||||
default:
|
||||
return; // unknown id, do nothing
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue