EditorGridComponent.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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 <Grid/GridComponent.h>
  10. #include <AtomLyIntegration/CommonFeatures/Grid/GridComponentConstants.h>
  11. #include <AtomLyIntegration/CommonFeatures/Grid/GridComponentBus.h>
  12. #include <Atom/Feature/Utils/EditorRenderComponentAdapter.h>
  13. namespace AZ
  14. {
  15. namespace Render
  16. {
  17. //! In-editor grid component
  18. class EditorGridComponent final
  19. : public EditorRenderComponentAdapter<GridComponentController, GridComponent, GridComponentConfig>
  20. {
  21. public:
  22. using BaseClass = EditorRenderComponentAdapter<GridComponentController, GridComponent, GridComponentConfig>;
  23. AZ_EDITOR_COMPONENT(AZ::Render::EditorGridComponent, EditorGridComponentTypeId, BaseClass);
  24. static void Reflect(AZ::ReflectContext* context);
  25. EditorGridComponent() = default;
  26. EditorGridComponent(const GridComponentConfig& config);
  27. };
  28. } // namespace Render
  29. } // namespace AZ