You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/AWSGameLift/Code/AWSGameLiftClient/Source/Activity/AWSGameLiftActivityUtils.h

39 lines
1.4 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/std/containers/unordered_map.h>
#include <AzCore/std/string/string.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/gamelift/model/GameProperty.h>
#include <aws/gamelift/model/AttributeValue.h>
namespace AWSGameLift
{
namespace AWSGameLiftActivityUtils
{
void GetGameProperties(
const AZStd::unordered_map<AZStd::string, AZStd::string>& sessionProperties,
Aws::Vector<Aws::GameLift::Model::GameProperty>& outGameProperties,
AZStd::string& outGamePropertiesOutput);
void ConvertPlayerAttributes(
const AZStd::unordered_map<AZStd::string, AZStd::string>& playerAttributes,
Aws::Map<Aws::String, Aws::GameLift::Model::AttributeValue>& outPlayerAttributes);
void ConvertRegionToLatencyMap(
const AZStd::unordered_map<AZStd::string, int>& regionToLatencyMap,
Aws::Map<Aws::String, int>& outRegionToLatencyMap);
bool ValidatePlayerAttributes(
const AZStd::unordered_map<AZStd::string, AZStd::string>& playerAttributes);
} // namespace AWSGameLiftActivityUtils
} // namespace AWSGameLift