| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include <AzCore/Component/Component.h>
- #include <SimulationInterfaces/NamedPose.h>
- #include <SimulationInterfaces/NamedPoseManagerRequestBus.h>
- #include <SimulationInterfaces/SimulationInterfacesTypeIds.h>
- namespace SimulationInterfaces
- {
- class NamedPoseComponent
- : public AZ::Component
- , public NamedPoseComponentRequestBus::Handler
- {
- public:
- AZ_COMPONENT(NamedPoseComponent, NamedPoseComponentTypeId);
- NamedPoseComponent() = default;
- NamedPoseComponent(const NamedPose& config);
- ~NamedPoseComponent() override = default;
- void Activate() override;
- void Deactivate() override;
- static void Reflect(AZ::ReflectContext* context);
- private:
- NamedPose GetConfiguration() override
- {
- return m_config;
- }
- NamedPose m_config;
- };
- } // namespace SimulationInterfaces
|