${Name}Interface.h 852 B

12345678910111213141516171819202122232425262728293031323334
  1. // {BEGIN_LICENSE}
  2. /*
  3. * Copyright (c) Contributors to the Open 3D Engine Project.
  4. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. *
  6. * SPDX-License-Identifier: Apache-2.0 OR MIT
  7. *
  8. */
  9. // {END_LICENSE}
  10. #pragma once
  11. #include <AzCore/Component/ComponentBus.h>
  12. namespace ${GemName}
  13. {
  14. class ${SanitizedCppName}Requests
  15. : public AZ::ComponentBus
  16. {
  17. public:
  18. AZ_RTTI(${GemName}::${SanitizedCppName}Requests, "{${Random_Uuid}}");
  19. // Put your public request methods here.
  20. // Put notification events here. Examples:
  21. // void RegisterEvent(AZ::EventHandler<...> notifyHandler);
  22. // AZ::Event<...> m_notifyEvent1;
  23. };
  24. using ${SanitizedCppName}RequestBus = AZ::EBus<${SanitizedCppName}Requests>;
  25. } // namespace ${GemName}