Planet_StormModule.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <AzCore/Memory/SystemAllocator.h>
  2. #include <AzCore/Module/Module.h>
  3. #include "Planet_StormSystemComponent.h"
  4. namespace Planet_Storm
  5. {
  6. class Planet_StormModule
  7. : public AZ::Module
  8. {
  9. public:
  10. AZ_RTTI(Planet_StormModule, "{7bbabbaf-3c31-4372-90c8-272fd87b189a}", AZ::Module);
  11. AZ_CLASS_ALLOCATOR(Planet_StormModule, AZ::SystemAllocator, 0);
  12. Planet_StormModule()
  13. : AZ::Module()
  14. {
  15. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  16. m_descriptors.insert(m_descriptors.end(), {
  17. Planet_StormSystemComponent::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<Planet_StormSystemComponent>(),
  27. };
  28. }
  29. };
  30. }// namespace Planet_Storm
  31. AZ_DECLARE_MODULE_CLASS(Gem_Planet_Storm, Planet_Storm::Planet_StormModule)