CommentNode.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_COMMENTNODE_H
  9. #define CRYINCLUDE_CRYMOVIE_COMMENTNODE_H
  10. #pragma once
  11. #include "AnimNode.h"
  12. class CCommentContext;
  13. class CCommentNode
  14. : public CAnimNode
  15. {
  16. public:
  17. AZ_CLASS_ALLOCATOR(CCommentNode, AZ::SystemAllocator);
  18. AZ_RTTI(CCommentNode, "{9FCBF56F-B7B3-4519-B3D2-9B7E5F7E6210}", CAnimNode);
  19. CCommentNode(const int id);
  20. CCommentNode();
  21. static void Initialize();
  22. //-----------------------------------------------------------------------------
  23. //! Overrides from CAnimNode
  24. virtual void Animate(SAnimContext& ac);
  25. virtual void CreateDefaultTracks();
  26. virtual void OnReset();
  27. virtual void Activate(bool bActivate);
  28. virtual void Serialize(XmlNodeRef& xmlNode, bool bLoading, bool bLoadEmptyTracks);
  29. //-----------------------------------------------------------------------------
  30. //! Overrides from IAnimNode
  31. virtual unsigned int GetParamCount() const;
  32. virtual CAnimParamType GetParamType(unsigned int nIndex) const;
  33. static void Reflect(AZ::ReflectContext* context);
  34. protected:
  35. virtual bool GetParamInfoFromType(const CAnimParamType& paramId, SParamInfo& info) const;
  36. };
  37. #endif // CRYINCLUDE_CRYMOVIE_COMMENTNODE_H