Physics_TestModule.cpp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #include <AzCore/Memory/SystemAllocator.h>
  2. #include <AzCore/Module/Module.h>
  3. #include "Physics_TestSystemComponent.h"
  4. #include "PhysXJointTestComponent.h"
  5. #include "PhysXTestGripper.h"
  6. #include "SkidSteering.h"
  7. namespace Physics_Test
  8. {
  9. class Physics_TestModule
  10. : public AZ::Module
  11. {
  12. public:
  13. AZ_RTTI(Physics_TestModule, "{8e9ea463-7ca5-4e68-a3b5-a9f5446d4701}", AZ::Module);
  14. AZ_CLASS_ALLOCATOR(Physics_TestModule, AZ::SystemAllocator, 0);
  15. Physics_TestModule()
  16. : AZ::Module()
  17. {
  18. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  19. m_descriptors.insert(m_descriptors.end(), {
  20. Physics_TestSystemComponent::CreateDescriptor(),
  21. TestScene::ImGuiJointDemo::CreateDescriptor(),
  22. TestScene::SkidSteeringDemo::CreateDescriptor(),
  23. TestScene::ImGuiGripperTest::CreateDescriptor()
  24. });
  25. }
  26. /**
  27. * Add required SystemComponents to the SystemEntity.
  28. */
  29. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  30. {
  31. return AZ::ComponentTypeList{
  32. azrtti_typeid<Physics_TestSystemComponent>(),
  33. };
  34. }
  35. };
  36. }// namespace Physics_Test
  37. AZ_DECLARE_MODULE_CLASS(Gem_Physics_Test, Physics_Test::Physics_TestModule)