| 123456789101112131415161718192021222324252627282930 |
- // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #include <AnKi/Scene/Events/Event.h>
- #include <AnKi/Resource/AnimationResource.h>
- namespace anki {
- /// @addtogroup scene
- /// @{
- /// 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(Second prevUpdateTime, Second crntTime) override;
- private:
- AnimationResourcePtr m_anim;
- };
- /// @}
- } // end namespace anki
|