EditorStarsModule.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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);
  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. #if defined(O3DE_GEM_NAME)
  35. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Editor), AZ::Render::EditorStarsModule)
  36. #else
  37. AZ_DECLARE_MODULE_CLASS(Gem_Stars_Editor, AZ::Render::EditorStarsModule)
  38. #endif