AnimationEvent.h 677 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (C) 2009-2015, Panagiotis Christopoulos Charitos.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #include "anki/event/Event.h"
  6. #include "anki/resource/Resource.h"
  7. namespace anki {
  8. /// @addtogroup event
  9. /// @{
  10. /// Event controled by animation resource
  11. class AnimationEvent: public Event
  12. {
  13. public:
  14. ANKI_USE_RESULT Error create(
  15. EventManager* manager,
  16. const AnimationResourcePointer& anim,
  17. SceneNode* movableSceneNode);
  18. /// Implements Event::update
  19. ANKI_USE_RESULT Error update(F32 prevUpdateTime, F32 crntTime) override;
  20. private:
  21. AnimationResourcePointer m_anim;
  22. };
  23. /// @}
  24. } // end namespace anki