StarsModule.h 1.0 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 <AzCore/Memory/SystemAllocator.h>
  9. #include <AzCore/Module/Module.h>
  10. #include <StarsSystemComponent.h>
  11. #include <StarsComponent.h>
  12. namespace AZ::Render
  13. {
  14. class StarsModule
  15. : public AZ::Module
  16. {
  17. public:
  18. AZ_RTTI(StarsModule, "{1C13B38B-BAD5-4C42-AB75-9038596CBF3E}", AZ::Module);
  19. AZ_CLASS_ALLOCATOR(StarsModule, AZ::SystemAllocator);
  20. StarsModule()
  21. {
  22. m_descriptors.insert(m_descriptors.end(), {
  23. StarsSystemComponent::CreateDescriptor(),
  24. StarsComponent::CreateDescriptor(),
  25. });
  26. }
  27. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  28. {
  29. return AZ::ComponentTypeList{
  30. azrtti_typeid<StarsSystemComponent>()
  31. };
  32. }
  33. };
  34. }// namespace AZ::Render