DecalComponent.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 <AzCore/RTTI/TypeInfo.h>
  10. #include <AzFramework/Components/ComponentAdapter.h>
  11. #include <Decals/DecalComponentController.h>
  12. #include <AzCore/RTTI/BehaviorContext.h>
  13. #include <AtomLyIntegration/CommonFeatures/Decals/DecalConstants.h>
  14. namespace AZ
  15. {
  16. namespace Render
  17. {
  18. class DecalComponent final
  19. : public AzFramework::Components::ComponentAdapter<DecalComponentController, DecalComponentConfig>
  20. {
  21. public:
  22. using BaseClass = AzFramework::Components::ComponentAdapter<DecalComponentController, DecalComponentConfig>;
  23. AZ_COMPONENT(AZ::Render::DecalComponent, DecalComponentTypeId, BaseClass);
  24. DecalComponent() = default;
  25. DecalComponent(const DecalComponentConfig& config);
  26. static void Reflect(AZ::ReflectContext* context);
  27. };
  28. } // namespace Render
  29. } // namespace AZ