CMakeTestbedModule.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
  3. * its licensors.
  4. *
  5. * For complete copyright and license terms please see the LICENSE at the root of this
  6. * distribution (the "License"). All use of this software is governed by the License,
  7. * or, if provided, by the license below or the license accompanying this file. Do not
  8. * remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
  9. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. *
  11. */
  12. #include <AzCore/Memory/SystemAllocator.h>
  13. #include <AzCore/Module/Module.h>
  14. #include "CMakeTestbedSystemComponent.h"
  15. namespace CMakeTestbed
  16. {
  17. class CMakeTestbedModule
  18. : public AZ::Module
  19. {
  20. public:
  21. AZ_RTTI(CMakeTestbedModule, "{41E747FA-DBF8-4E5A-B843-132584989953}", AZ::Module);
  22. AZ_CLASS_ALLOCATOR(CMakeTestbedModule, AZ::SystemAllocator, 0);
  23. CMakeTestbedModule()
  24. : AZ::Module()
  25. {
  26. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  27. m_descriptors.insert(m_descriptors.end(), {
  28. CMakeTestbedSystemComponent::CreateDescriptor(),
  29. });
  30. }
  31. /**
  32. * Add required SystemComponents to the SystemEntity.
  33. */
  34. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  35. {
  36. return AZ::ComponentTypeList{
  37. azrtti_typeid<CMakeTestbedSystemComponent>(),
  38. };
  39. }
  40. };
  41. }
  42. // DO NOT MODIFY THIS LINE UNLESS YOU RENAME THE GEM
  43. // The first parameter should be GemName_GemIdLower
  44. // The second should be the fully qualified name of the class above
  45. AZ_DECLARE_MODULE_CLASS(Gem_CMakeTestbed, CMakeTestbed::CMakeTestbedModule)