in GameLiftPlugin/Source/GameLiftClient/Private/GameLiftClientSDKModels.cpp [126:170]
FGL_GameSession AwsGameSessionToUe(const Aws::GameLift::Model::GameSession& GameSessionIn)
{
FGL_GameSession Result;
if (GameSessionIn.GameSessionIdHasBeenSet())
{
Result.GameSessionId = AWSSerializer::ASToFS(GameSessionIn.GetGameSessionId().c_str());
}
if (GameSessionIn.FleetIdHasBeenSet())
{
Result.FleetId = AWSSerializer::ASToFS(GameSessionIn.GetFleetId().c_str());
}
if (GameSessionIn.CurrentPlayerSessionCountHasBeenSet())
{
Result.CurrentPlayerSessionCount = GameSessionIn.GetCurrentPlayerSessionCount();
}
if (GameSessionIn.MaximumPlayerSessionCountHasBeenSet())
{
Result.MaximumPlayerSessionCount = GameSessionIn.GetMaximumPlayerSessionCount();
}
if (GameSessionIn.StatusHasBeenSet())
{
Result.Status = static_cast<EGL_GameSessionStatus>(GameSessionIn.GetStatus());
}
if (GameSessionIn.IpAddressHasBeenSet())
{
Result.IpAddress = AWSSerializer::ASToFS(GameSessionIn.GetIpAddress().c_str());
}
if (GameSessionIn.DnsNameHasBeenSet())
{
Result.DnsName = AWSSerializer::ASToFS(GameSessionIn.GetDnsName().c_str());
}
if (GameSessionIn.PortHasBeenSet())
{
Result.Port = GameSessionIn.GetPort();
}
return Result;
}