ScriptVarNode.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_SCRIPTVARNODE_H
  9. #define CRYINCLUDE_CRYMOVIE_SCRIPTVARNODE_H
  10. #pragma once
  11. #include "AnimNode.h"
  12. class CAnimScriptVarNode
  13. : public CAnimNode
  14. {
  15. public:
  16. AZ_CLASS_ALLOCATOR(CAnimScriptVarNode, AZ::SystemAllocator);
  17. AZ_RTTI(CAnimScriptVarNode, "{D93FC866-A158-4C00-AB03-29DC7D3CCCFF}", CAnimNode);
  18. CAnimScriptVarNode(const int id);
  19. CAnimScriptVarNode();
  20. //////////////////////////////////////////////////////////////////////////
  21. // Overrides from CAnimNode
  22. //////////////////////////////////////////////////////////////////////////
  23. void Animate(SAnimContext& ec);
  24. void CreateDefaultTracks();
  25. void OnReset();
  26. void OnResume();
  27. //////////////////////////////////////////////////////////////////////////
  28. virtual unsigned int GetParamCount() const;
  29. virtual CAnimParamType GetParamType(unsigned int nIndex) const;
  30. virtual bool GetParamInfoFromType(const CAnimParamType& paramId, SParamInfo& info) const;
  31. static void Reflect(AZ::ReflectContext* context);
  32. private:
  33. float m_value;
  34. };
  35. #endif // CRYINCLUDE_CRYMOVIE_SCRIPTVARNODE_H