3
0

LyShineExamplesSystemComponent.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 <LyShineExamples/LyShineExamplesBus.h>
  11. #include <LyShineExamplesCppExample.h>
  12. #include "LyShineExamplesInternalBus.h"
  13. namespace LyShineExamples
  14. {
  15. class LyShineExamplesSystemComponent
  16. : public AZ::Component
  17. , protected LyShineExamplesRequestBus::Handler
  18. , protected LyShineExamplesInternalBus::Handler
  19. {
  20. public:
  21. AZ_COMPONENT(LyShineExamplesSystemComponent, "{045500EA-BB1D-40CE-8811-F1DF6A340557}");
  22. static void Reflect(AZ::ReflectContext* context);
  23. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  24. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  25. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  26. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  27. protected:
  28. ////////////////////////////////////////////////////////////////////////
  29. // LyShineExamplesRequestBus interface implementation
  30. ////////////////////////////////////////////////////////////////////////
  31. ////////////////////////////////////////////////////////////////////////
  32. // LyShineExamplesInternalBus interface implementation
  33. UiDynamicContentDatabase* GetUiDynamicContentDatabase() override;
  34. ////////////////////////////////////////////////////////////////////////
  35. ////////////////////////////////////////////////////////////////////////
  36. // AZ::Component interface implementation
  37. void Init() override;
  38. void Activate() override;
  39. void Deactivate() override;
  40. ////////////////////////////////////////////////////////////////////////
  41. private: // data
  42. UiDynamicContentDatabase* m_uiDynamicContentDatabase = nullptr;
  43. LyShineExamplesCppExample* m_cppExample = nullptr;
  44. };
  45. }