AWSGameLiftStartMatchmakingRequest.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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/containers/unordered_map.h>
  10. #include <AzCore/std/string/string.h>
  11. #include <Multiplayer/Session/MatchmakingRequests.h>
  12. #include <AWSGameLiftPlayer.h>
  13. namespace AWSGameLift
  14. {
  15. //! AWSGameLiftStartMatchmakingRequest
  16. //! GameLift start matchmaking request which corresponds to Amazon GameLift
  17. //! Uses FlexMatch to create a game match for a group of players based on custom matchmaking rules
  18. //! StartMatchmakingRequest
  19. struct AWSGameLiftStartMatchmakingRequest
  20. : public Multiplayer::StartMatchmakingRequest
  21. {
  22. public:
  23. AZ_RTTI(AWSGameLiftStartMatchmakingRequest, "{D273DF71-9C55-48C1-95F9-8D7B66B9CF3E}", Multiplayer::StartMatchmakingRequest);
  24. static void Reflect(AZ::ReflectContext* context);
  25. AWSGameLiftStartMatchmakingRequest() = default;
  26. virtual ~AWSGameLiftStartMatchmakingRequest() = default;
  27. //! Name of the matchmaking configuration to use for this request
  28. AZStd::string m_configurationName;
  29. //! Information on each player to be matched
  30. AZStd::vector<AWSGameLiftPlayer> m_players;
  31. };
  32. } // namespace AWSGameLift