3
0

Module.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  43. // The first parameter should be GemName_GemIdLower
  44. // The second should be the fully qualified name of the class above
  45. AZ_DECLARE_MODULE_CLASS(Gem_Atom_Component_DebugCamera, AZ::Debug::CameraModule)