EntityReferenceComponent.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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 <AzFramework/Components/ComponentAdapter.h>
  10. #include <AtomLyIntegration/CommonFeatures/Scripting/EntityReferenceComponentConfig.h>
  11. #include <AtomLyIntegration/CommonFeatures/Scripting/EntityReferenceConstants.h>
  12. #include <Scripting/EntityReferenceComponentController.h>
  13. namespace AZ
  14. {
  15. namespace Render
  16. {
  17. class EntityReferenceComponent final
  18. : public AzFramework::Components::ComponentAdapter<EntityReferenceComponentController, EntityReferenceComponentConfig>
  19. {
  20. public:
  21. using BaseClass = AzFramework::Components::ComponentAdapter<EntityReferenceComponentController, EntityReferenceComponentConfig>;
  22. AZ_COMPONENT(AZ::Render::EntityReferenceComponent, EntityReferenceComponentTypeId, BaseClass);
  23. EntityReferenceComponent() = default;
  24. EntityReferenceComponent(const EntityReferenceComponentConfig& config);
  25. static void Reflect(AZ::ReflectContext* context);
  26. };
  27. }
  28. }