MotionMatchingSystemComponent.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 <AzCore/Component/TickBus.h>
  11. #include <MotionMatching/MotionMatchingBus.h>
  12. namespace EMotionFX::MotionMatching
  13. {
  14. class MotionMatchingSystemComponent
  15. : public AZ::Component
  16. , protected MotionMatchingRequestBus::Handler
  17. , public AZ::TickBus::Handler
  18. {
  19. public:
  20. AZ_COMPONENT(MotionMatchingSystemComponent, "{158cd35c-b548-4d7b-9493-9a3c5c359e49}");
  21. static void Reflect(AZ::ReflectContext* context);
  22. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  23. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  24. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  25. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  26. MotionMatchingSystemComponent();
  27. ~MotionMatchingSystemComponent();
  28. protected:
  29. virtual void DebugDraw(AZ::s32 debugDisplayId);
  30. ////////////////////////////////////////////////////////////////////////
  31. // AZ::Component interface implementation
  32. void Init() override;
  33. void Activate() override;
  34. void Deactivate() override;
  35. ////////////////////////////////////////////////////////////////////////
  36. ////////////////////////////////////////////////////////////////////////
  37. // AZTickBus interface implementation
  38. int GetTickOrder() override
  39. {
  40. return AZ::TICK_PRE_RENDER;
  41. }
  42. virtual void OnTick(float deltaTime, AZ::ScriptTimePoint time) override;
  43. ////////////////////////////////////////////////////////////////////////
  44. };
  45. } // namespace EMotionFX::MotionMatching