2
0

EditorStarsModule.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 <StarsModule.h>
  9. #include <EditorStarsSystemComponent.h>
  10. #include <EditorStarsComponent.h>
  11. namespace AZ::Render
  12. {
  13. class EditorStarsModule
  14. : public StarsModule
  15. {
  16. public:
  17. AZ_RTTI(EditorStarsModule, "{3D5FD4A5-4405-408A-BD64-F3B27006DB4A}", StarsModule);
  18. AZ_CLASS_ALLOCATOR(EditorStarsModule, AZ::SystemAllocator, 0);
  19. EditorStarsModule()
  20. {
  21. m_descriptors.insert(m_descriptors.end(), {
  22. EditorStarsSystemComponent::CreateDescriptor(),
  23. EditorStarsComponent::CreateDescriptor(),
  24. });
  25. }
  26. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  27. {
  28. return AZ::ComponentTypeList {
  29. azrtti_typeid<EditorStarsSystemComponent>(),
  30. };
  31. }
  32. };
  33. }// namespace AZ::Render
  34. AZ_DECLARE_MODULE_CLASS(Gem_Stars, AZ::Render::EditorStarsModule)