GameJam2021Module.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <AzCore/Memory/SystemAllocator.h>
  2. #include <AzCore/Module/Module.h>
  3. #include "GameJam2021SystemComponent.h"
  4. namespace GameJam2021
  5. {
  6. class GameJam2021Module
  7. : public AZ::Module
  8. {
  9. public:
  10. AZ_RTTI(GameJam2021Module, "{d5214946-0e67-4a51-baba-f1b733e22631}", AZ::Module);
  11. AZ_CLASS_ALLOCATOR(GameJam2021Module, AZ::SystemAllocator, 0);
  12. GameJam2021Module()
  13. : AZ::Module()
  14. {
  15. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  16. m_descriptors.insert(m_descriptors.end(), {
  17. GameJam2021SystemComponent::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<GameJam2021SystemComponent>(),
  27. };
  28. }
  29. };
  30. }// namespace GameJam2021
  31. AZ_DECLARE_MODULE_CLASS(Gem_GameJam2021, GameJam2021::GameJam2021Module)