CommentTrack.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #ifndef CRYINCLUDE_CRYMOVIE_COMMENTTRACK_H
  9. #define CRYINCLUDE_CRYMOVIE_COMMENTTRACK_H
  10. #pragma once
  11. #include "IMovieSystem.h"
  12. #include "AnimTrack.h"
  13. class CCommentTrack
  14. : public TAnimTrack<ICommentKey>
  15. {
  16. public:
  17. AZ_CLASS_ALLOCATOR(CCommentTrack, AZ::SystemAllocator);
  18. AZ_RTTI(CCommentTrack, "{A28FE42D-5B42-4E47-9813-4290D275D5A9}", IAnimTrack);
  19. //-----------------------------------------------------------------------------
  20. //!
  21. CCommentTrack();
  22. //-----------------------------------------------------------------------------
  23. //! IAnimTrack Method Overriding.
  24. //-----------------------------------------------------------------------------
  25. virtual void GetKeyInfo(int key, const char*& description, float& duration);
  26. virtual void SerializeKey(ICommentKey& key, XmlNodeRef& keyNode, bool bLoading);
  27. //-----------------------------------------------------------------------------
  28. //!
  29. void ValidateKeyOrder() { CheckValid(); }
  30. static void Reflect(AZ::ReflectContext* context);
  31. };
  32. #endif // CRYINCLUDE_CRYMOVIE_COMMENTTRACK_H