3
0

LayerNode.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. // Description : Header of layer node to control entities properties in the
  9. // specific layer.
  10. #ifndef CRYINCLUDE_CRYMOVIE_LAYERNODE_H
  11. #define CRYINCLUDE_CRYMOVIE_LAYERNODE_H
  12. #pragma once
  13. #include "AnimNode.h"
  14. class CLayerNode
  15. : public CAnimNode
  16. {
  17. public:
  18. AZ_CLASS_ALLOCATOR(CLayerNode, AZ::SystemAllocator);
  19. AZ_RTTI(CLayerNode, "{C2E65C31-D469-4DE0-8F67-B5B00DE96E52}", CAnimNode);
  20. //-----------------------------------------------------------------------------
  21. //!
  22. CLayerNode();
  23. CLayerNode(const int id);
  24. static void Initialize();
  25. //-----------------------------------------------------------------------------
  26. //! Overrides from CAnimNode
  27. virtual void Animate(SAnimContext& ec);
  28. virtual void CreateDefaultTracks();
  29. virtual void OnReset();
  30. virtual void Activate(bool bActivate);
  31. virtual void Serialize(XmlNodeRef& xmlNode, bool bLoading, bool bLoadEmptyTracks);
  32. //-----------------------------------------------------------------------------
  33. //! Overrides from IAnimNode
  34. virtual unsigned int GetParamCount() const;
  35. virtual CAnimParamType GetParamType(unsigned int nIndex) const;
  36. static void Reflect(AZ::ReflectContext* context);
  37. protected:
  38. virtual bool GetParamInfoFromType(const CAnimParamType& paramId, SParamInfo& info) const;
  39. private:
  40. bool m_bInit;
  41. bool m_bPreVisibility;
  42. };
  43. #endif // CRYINCLUDE_CRYMOVIE_LAYERNODE_H