${Name}Module.cpp 975 B

12345678910111213141516171819202122232425262728293031
  1. // {BEGIN_LICENSE}
  2. /*
  3. * Copyright (c) Contributors to the Open 3D Engine Project.
  4. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. *
  6. * SPDX-License-Identifier: Apache-2.0 OR MIT
  7. *
  8. */
  9. // {END_LICENSE}
  10. #include <${Name}/${Name}TypeIds.h>
  11. #include <${Name}ModuleInterface.h>
  12. #include "${Name}SystemComponent.h"
  13. namespace ${SanitizedCppName}
  14. {
  15. class ${SanitizedCppName}Module
  16. : public ${SanitizedCppName}ModuleInterface
  17. {
  18. public:
  19. AZ_RTTI(${SanitizedCppName}Module, ${SanitizedCppName}ModuleTypeId, ${SanitizedCppName}ModuleInterface);
  20. AZ_CLASS_ALLOCATOR(${SanitizedCppName}Module, AZ::SystemAllocator);
  21. };
  22. }// namespace ${SanitizedCppName}
  23. #if defined(O3DE_GEM_NAME)
  24. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME), ${SanitizedCppName}::${SanitizedCppName}Module)
  25. #else
  26. AZ_DECLARE_MODULE_CLASS(Gem_${SanitizedCppName}, ${SanitizedCppName}::${SanitizedCppName}Module)
  27. #endif