Module.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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/RTTI/RTTI.h>
  9. #include <AzCore/Module/Module.h>
  10. #include <Atom/Component/DebugCamera/ArcBallControllerComponent.h>
  11. #include <Atom/Component/DebugCamera/CameraComponent.h>
  12. #include <Atom/Component/DebugCamera/NoClipControllerComponent.h>
  13. namespace AZ
  14. {
  15. namespace Debug
  16. {
  17. class CameraModule
  18. : public AZ::Module
  19. {
  20. public:
  21. AZ_RTTI(CameraModule, "{C4F5D301-5C7F-42C2-8326-08F685B2D7A3}", AZ::Module);
  22. CameraModule()
  23. {
  24. m_descriptors.insert(m_descriptors.end(), {
  25. CameraControllerComponent::CreateDescriptor(),
  26. ArcBallControllerComponent::CreateDescriptor(),
  27. CameraComponent::CreateDescriptor(),
  28. NoClipControllerComponent::CreateDescriptor(),
  29. });
  30. }
  31. /**
  32. * Add required SystemComponents to the SystemEntity.
  33. */
  34. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  35. {
  36. AZ::ComponentTypeList required;
  37. return required;
  38. }
  39. };
  40. } // namespace Debug
  41. } // namespace AZ
  42. #if defined(O3DE_GEM_NAME)
  43. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), AZ::Debug::CameraModule)
  44. #else
  45. AZ_DECLARE_MODULE_CLASS(Gem_Atom_Component_DebugCamera, AZ::Debug::CameraModule)
  46. #endif