EditorEntityReferenceComponent.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 <AzToolsFramework/ToolsComponents/EditorComponentAdapter.h>
  10. #include <Scripting/EntityReferenceComponent.h>
  11. #include <AzCore/std/containers/vector.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. class EditorEntityReferenceComponent final
  17. : public AzToolsFramework::Components::EditorComponentAdapter<EntityReferenceComponentController, EntityReferenceComponent, EntityReferenceComponentConfig>
  18. {
  19. public:
  20. using BaseClass = AzToolsFramework::Components::EditorComponentAdapter<EntityReferenceComponentController, EntityReferenceComponent, EntityReferenceComponentConfig>;
  21. AZ_EDITOR_COMPONENT(AZ::Render::EditorEntityReferenceComponent, EditorEntityReferenceComponentTypeId, BaseClass);
  22. static void Reflect(AZ::ReflectContext* context);
  23. EditorEntityReferenceComponent() = default;
  24. EditorEntityReferenceComponent(const EntityReferenceComponentConfig& config);
  25. AZ::u32 OnConfigurationChanged() override;
  26. };
  27. }
  28. }