| 1234567891011121314151617181920212223242526272829303132 |
- // Copyright (C) 2009-2016, Panagiotis Christopoulos Charitos.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #include <anki/event/Event.h>
- #include <anki/resource/Animation.h>
- namespace anki
- {
- /// @addtogroup event
- /// @{
- /// Event controled by animation resource
- class AnimationEvent : public Event
- {
- public:
- AnimationEvent(EventManager* manager);
- ANKI_USE_RESULT Error init(
- const AnimationResourcePtr& anim, SceneNode* movableSceneNode);
- /// Implements Event::update
- ANKI_USE_RESULT Error update(F32 prevUpdateTime, F32 crntTime) override;
- private:
- AnimationResourcePtr m_anim;
- };
- /// @}
- } // end namespace anki
|