EditorAudioEnvironmentComponent.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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/std/string/string.h>
  10. #include <AzToolsFramework/ToolsComponents/EditorComponentBase.h>
  11. #include <IAudioInterfacesCommonData.h>
  12. #include <AzToolsFramework/UI/PropertyEditor/PropertyAudioCtrlTypes.h>
  13. #include "AudioEnvironmentComponent.h"
  14. namespace LmbrCentral
  15. {
  16. /*!
  17. * EditorAudioEnvironmentComponent
  18. */
  19. class EditorAudioEnvironmentComponent
  20. : public AzToolsFramework::Components::EditorComponentBase
  21. {
  22. public:
  23. AZ_EDITOR_COMPONENT(EditorAudioEnvironmentComponent, "{EB686E3B-6F96-42D4-ABBB-2245A09C9CF3}",
  24. AzToolsFramework::Components::EditorComponentBase);
  25. EditorAudioEnvironmentComponent();
  26. void BuildGameEntity(AZ::Entity* gameEntity) override;
  27. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  28. {
  29. LmbrCentral::AudioEnvironmentComponent::GetProvidedServices(provided);
  30. }
  31. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
  32. {
  33. LmbrCentral::AudioEnvironmentComponent::GetRequiredServices(required);
  34. }
  35. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
  36. {
  37. LmbrCentral::AudioEnvironmentComponent::GetIncompatibleServices(incompatible);
  38. }
  39. static void Reflect(AZ::ReflectContext* context);
  40. private:
  41. //! Serialized data
  42. AzToolsFramework::CReflectedVarAudioControl m_defaultEnvironment;
  43. };
  44. } // namespace LmbrCentral