XRModule.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 <XR/XRSystemComponent.h>
  11. namespace XR
  12. {
  13. class Module : public AZ::Module
  14. {
  15. public:
  16. AZ_RTTI(Module, "{71A99524-7D31-42D3-955E-3F4774F310AC}", AZ::Module);
  17. AZ_CLASS_ALLOCATOR(Module, AZ::SystemAllocator, 0);
  18. Module()
  19. : AZ::Module()
  20. {
  21. m_descriptors.insert(
  22. m_descriptors.end(),
  23. {
  24. SystemComponent::CreateDescriptor(),
  25. });
  26. }
  27. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  28. {
  29. return { azrtti_typeid<XR::SystemComponent>() };
  30. }
  31. };
  32. }
  33. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  34. // The first parameter should be GemName_GemIdLower
  35. // The second should be the fully qualified name of the class above
  36. AZ_DECLARE_MODULE_CLASS(Gem_XR, XR::Module)