AnimNodeGroup.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #include <AzCore/Serialization/SerializeContext.h>
  9. #include "AnimNodeGroup.h"
  10. #include "Maestro/Types/AnimNodeType.h"
  11. #include "Maestro/Types/AnimParamType.h"
  12. //////////////////////////////////////////////////////////////////////////
  13. CAnimNodeGroup::CAnimNodeGroup()
  14. : CAnimNodeGroup(0)
  15. {
  16. }
  17. //////////////////////////////////////////////////////////////////////////
  18. CAnimNodeGroup::CAnimNodeGroup(const int id)
  19. : CAnimNode(id, AnimNodeType::Group)
  20. {
  21. SetFlags(GetFlags() | eAnimNodeFlags_CanChangeName);
  22. }
  23. CAnimParamType CAnimNodeGroup::GetParamType([[maybe_unused]] unsigned int nIndex) const
  24. {
  25. return AnimParamType::Invalid;
  26. }
  27. //////////////////////////////////////////////////////////////////////////
  28. void CAnimNodeGroup::Reflect(AZ::ReflectContext* context)
  29. {
  30. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  31. {
  32. serializeContext->Class<CAnimNodeGroup, CAnimNode>()
  33. ->Version(1);
  34. }
  35. }