AWSGameLiftSessionRequestBus.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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/std/string/string.h>
  11. #include <Multiplayer/Session/ISessionRequests.h>
  12. namespace AWSGameLift
  13. {
  14. // ISessionAsyncRequests EBus wrapper
  15. class AWSGameLiftSessionAsyncRequests
  16. : public AZ::EBusTraits
  17. {
  18. public:
  19. using MutexType = AZStd::recursive_mutex;
  20. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
  21. static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
  22. };
  23. using AWSGameLiftSessionAsyncRequestBus = AZ::EBus<Multiplayer::ISessionAsyncRequests, AWSGameLiftSessionAsyncRequests>;
  24. // ISessionRequests EBus wrapper
  25. class AWSGameLiftSessionRequests
  26. : public AZ::EBusTraits
  27. {
  28. public:
  29. using MutexType = AZStd::recursive_mutex;
  30. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
  31. static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
  32. };
  33. using AWSGameLiftSessionRequestBus = AZ::EBus<Multiplayer::ISessionRequests, AWSGameLiftSessionRequests>;
  34. } // namespace AWSGameLift