MPS-Asset-TestModule.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <AzCore/Memory/SystemAllocator.h>
  2. #include <AzCore/Module/Module.h>
  3. #include "MPS-Asset-TestSystemComponent.h"
  4. namespace MPS_Asset_Test
  5. {
  6. class MPS_Asset_TestModule
  7. : public AZ::Module
  8. {
  9. public:
  10. AZ_RTTI(MPS_Asset_TestModule, "{1EC33541-DE80-45AD-97B3-3A902DBF4636}", AZ::Module);
  11. AZ_CLASS_ALLOCATOR(MPS_Asset_TestModule, AZ::SystemAllocator, 0);
  12. MPS_Asset_TestModule()
  13. : AZ::Module()
  14. {
  15. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  16. m_descriptors.insert(m_descriptors.end(), {
  17. MPS_Asset_TestSystemComponent::CreateDescriptor(),
  18. });
  19. }
  20. /**
  21. * Add required SystemComponents to the SystemEntity.
  22. */
  23. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  24. {
  25. return AZ::ComponentTypeList{
  26. azrtti_typeid<MPS_Asset_TestSystemComponent>(),
  27. };
  28. }
  29. };
  30. }// namespace MPS_Asset_Test
  31. AZ_DECLARE_MODULE_CLASS(Gem_MPS_Asset_Test, MPS_Asset_Test::MPS_Asset_TestModule)