NamedPoseComponent.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <SimulationInterfaces/NamedPose.h>
  11. #include <SimulationInterfaces/NamedPoseManagerRequestBus.h>
  12. #include <SimulationInterfaces/SimulationInterfacesTypeIds.h>
  13. namespace SimulationInterfaces
  14. {
  15. class NamedPoseComponent
  16. : public AZ::Component
  17. , public NamedPoseComponentRequestBus::Handler
  18. {
  19. public:
  20. AZ_COMPONENT(NamedPoseComponent, NamedPoseComponentTypeId);
  21. NamedPoseComponent() = default;
  22. NamedPoseComponent(const NamedPose& config);
  23. ~NamedPoseComponent() override = default;
  24. void Activate() override;
  25. void Deactivate() override;
  26. static void Reflect(AZ::ReflectContext* context);
  27. private:
  28. NamedPose GetConfiguration() override
  29. {
  30. return m_config;
  31. }
  32. NamedPose m_config;
  33. };
  34. } // namespace SimulationInterfaces