ApplePickingNotifications.h 761 B

12345678910111213141516171819202122232425
  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. #include <AzCore/RTTI/BehaviorContext.h>
  11. namespace AppleKraken
  12. {
  13. //! Notifications related to apple picking
  14. class ApplePickingNotifications : public AZ::EBusTraits
  15. {
  16. public:
  17. virtual void ApplePicked(AZ::EntityId appleId) = 0;
  18. virtual void AppleRetrieved() = 0;
  19. virtual void PickingFailed(AZ::EntityId appleId, const AZStd::string& reason) = 0;
  20. };
  21. using ApplePickingNotificationBus = AZ::EBus<ApplePickingNotifications>;
  22. } // namespace AppleKraken