${Name}Component.h 970 B

12345678910111213141516171819202122232425262728293031
  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. #pragma once
  9. #include <Components/${Name}ComponentController.h>
  10. #include <AzFramework/Components/ComponentAdapter.h>
  11. namespace ${Name}
  12. {
  13. inline constexpr AZ::TypeId ${Name}ComponentTypeId { "{${Random_Uuid}}" };
  14. class ${Name}Component final
  15. : public AzFramework::Components::ComponentAdapter<${Name}ComponentController, ${Name}ComponentConfig>
  16. {
  17. public:
  18. using BaseClass = AzFramework::Components::ComponentAdapter<${Name}ComponentController, ${Name}ComponentConfig>;
  19. AZ_COMPONENT(${Name}Component, ${Name}ComponentTypeId, BaseClass);
  20. ${Name}Component() = default;
  21. ${Name}Component(const ${Name}ComponentConfig& config);
  22. static void Reflect(AZ::ReflectContext* context);
  23. };
  24. }