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!
답변함 일 년 전
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.