LyShineExamplesInternalBus.h 948 B

1234567891011121314151617181920212223242526272829303132
  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/EBus/EBus.h>
  10. namespace LyShineExamples
  11. {
  12. class UiDynamicContentDatabase;
  13. class LyShineExamplesInternal
  14. : public AZ::EBusTraits
  15. {
  16. public:
  17. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
  18. static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
  19. // Public functions
  20. //! Get the UiDynamicContentDatabase. It is gauranteed to be created when the
  21. //! gem system component is activated.
  22. virtual UiDynamicContentDatabase* GetUiDynamicContentDatabase() = 0;
  23. };
  24. using LyShineExamplesInternalBus = AZ::EBus<LyShineExamplesInternal>;
  25. } // namespace LyShineExamples