1 個回答
- 最新
- 最多得票
- 最多評論
0
Hi!
You should be able to extract the FString from the outcome object that is returned by GetGameSessionId()
.
auto outcome = Aws::GameLift::Server::GetGameSessionId();
if (outcome.IsSuccess()){
FString gameSessionId = outcome.getResult();
} else {
// error handling goes here
}
Thanks!
已回答 1 年前
相關內容
- AWS 官方已更新 1 年前
Aws::GameLift::Server::Model::DescribePlayerSessionsRequest DescribePlayerSessionsRequest; DescribePlayerSessionsRequest.SetGameSessionId(TCHAR_TO_ANSI(*sessionId)); DescribePlayerSessionsRequest.SetPlayerSessionStatusFilter("RESERVED");
How to forloop through this and get all player IDs for players in reserved status. This would be highly helpful thanks. I am not able to understand the syntax from the documentation.