Paper_KidModule.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 "Paper_KidSystemComponent.h"
  11. namespace Paper_Kid
  12. {
  13. class Paper_KidModule
  14. : public AZ::Module
  15. {
  16. public:
  17. AZ_RTTI(Paper_KidModule, "{D1D68BE7-89A4-4BEB-B16D-A78C32C9C1BC}", AZ::Module);
  18. AZ_CLASS_ALLOCATOR(Paper_KidModule, AZ::SystemAllocator, 0);
  19. Paper_KidModule()
  20. : AZ::Module()
  21. {
  22. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  23. m_descriptors.insert(m_descriptors.end(), {
  24. Paper_KidSystemComponent::CreateDescriptor(),
  25. });
  26. }
  27. /**
  28. * Add required SystemComponents to the SystemEntity.
  29. */
  30. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  31. {
  32. return AZ::ComponentTypeList{
  33. azrtti_typeid<Paper_KidSystemComponent>(),
  34. };
  35. }
  36. };
  37. }// namespace Paper_Kid
  38. AZ_DECLARE_MODULE_CLASS(Gem_Paper_Kid, Paper_Kid::Paper_KidModule)