Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse
#include <turn_based_multiplayer_manager.h>
Data
và ResponseStatus
cho TurnBasedMatches và lời mời.
Tóm tắt
Nếu IsSuccess()
không trả về giá trị true cho ResponseStatus
thì empty()
sẽ trả về giá trị true cho vectơ lời mời.
Các thuộc tính công khai
completed_matches
std::vector< TurnBasedMatch > gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::completed_matches
dữ liệu
struct gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::@0 gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::data
Trường dữ liệu bao gồm tất cả MultiplayerInvitation (Lời mời nhiều người chơi) và TurnBasedMatch. Các lớp này được nhóm lại để hiển thị thường xuyên trong giao diện người dùng.
Cấu trúc này sẽ chỉ chứa dữ liệu hợp lệ nếu IsSuccess(status)
.
lời mời
std::vector< MultiplayerInvitation > gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::invitations
Vectơ của tất cả MultiplayerInvitation (Lời mời nhiều người chơi).
Lời mời được sắp xếp theo thời gian cập nhật gần đây nhất.
my_turn_matches
std::vector< TurnBasedMatch > gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::my_turn_matches
Vectơ của TurnBasedMatches có MatchStatusMY_TURN
hoặc PENDING_COMPLETION
.
Kết quả trùng khớp được sắp xếp theo thời gian cập nhật gần đây nhất.
trạng thái
MultiplayerStatus gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::status
MultiplayerStatus
của thao tác đã tạo ra Response
này.
their_turn_matches
std::vector< TurnBasedMatch > gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::their_turn_matches
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse Struct Reference\n\ngpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse\n==========================================================\n\n`#include \u003cturn_based_multiplayer_manager.h\u003e`\n\n`Data` and `ResponseStatus` for [TurnBasedMatches](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match) and [invitations](/games/services/cpp/api/class/gpg/multiplayer-invitation#classgpg_1_1_multiplayer_invitation).\n\nSummary\n-------\n\nIf [IsSuccess()](/games/services/cpp/api/namespace/gpg#namespacegpg_1a61c5fcddb17a1efad15d843513d61d56) does not return true for `ResponseStatus`, then `empty()` returns true for a vector of invitations.\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [completed_matches](#structgpg_1_1_turn_based_multiplayer_manager_1_1_turn_based_matches_response_1aa44d856b73ec5ce53b0207c39111ace0) | `std::vector\u003c `[TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)` \u003e` A vector of [TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)es with [MatchStatus](/games/services/cpp/api/namespace/gpg#namespacegpg_1a3f70b0925521329511a6994f44a11cbe)`COMPLETED`. |\n| [data](#structgpg_1_1_turn_based_multiplayer_manager_1_1_turn_based_matches_response_1ae2d249eb203e427dec11a6c8127fb7d5) | `struct gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::@0` The data field includes all [MultiplayerInvitation](/games/services/cpp/api/class/gpg/multiplayer-invitation#classgpg_1_1_multiplayer_invitation)s and [TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)es, grouped for conventient display in UI. |\n| [invitations](#structgpg_1_1_turn_based_multiplayer_manager_1_1_turn_based_matches_response_1a53517e0b84c41d51159abc15b5fda96e) | `std::vector\u003c `[MultiplayerInvitation](/games/services/cpp/api/class/gpg/multiplayer-invitation#classgpg_1_1_multiplayer_invitation)` \u003e` A vector of all [MultiplayerInvitation](/games/services/cpp/api/class/gpg/multiplayer-invitation#classgpg_1_1_multiplayer_invitation)s. |\n| [my_turn_matches](#structgpg_1_1_turn_based_multiplayer_manager_1_1_turn_based_matches_response_1a10172bacef250e38ea3e77f1ff73ebff) | `std::vector\u003c `[TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)` \u003e` A vector of [TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)es with [MatchStatus](/games/services/cpp/api/namespace/gpg#namespacegpg_1a3f70b0925521329511a6994f44a11cbe)`MY_TURN` or `PENDING_COMPLETION`. |\n| [status](#structgpg_1_1_turn_based_multiplayer_manager_1_1_turn_based_matches_response_1af1c1a7263b250daabc3dee688c0ae8b2) | [MultiplayerStatus](/games/services/cpp/api/namespace/gpg#namespacegpg_1ad9430a5d223ce8fb0fe78d07e6b183b4) The `MultiplayerStatus` of the operation that generated this `Response`. |\n| [their_turn_matches](#structgpg_1_1_turn_based_multiplayer_manager_1_1_turn_based_matches_response_1ad8051c95b28f3d1d8e4908e35a8ae319) | `std::vector\u003c `[TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)` \u003e` A vector of [TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)es with [MatchStatus](/games/services/cpp/api/namespace/gpg#namespacegpg_1a3f70b0925521329511a6994f44a11cbe)`THEIR_TURN`. |\n\nPublic attributes\n-----------------\n\n### completed_matches\n\n```c++\nstd::vector\u003c TurnBasedMatch \u003e gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::completed_matches\n``` \nA vector of [TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)es with [MatchStatus](/games/services/cpp/api/namespace/gpg#namespacegpg_1a3f70b0925521329511a6994f44a11cbe)`COMPLETED`.\n\nMatches are sorted by last update time. \n\n### data\n\n```c++\nstruct gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::@0 gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::data\n``` \nThe data field includes all [MultiplayerInvitation](/games/services/cpp/api/class/gpg/multiplayer-invitation#classgpg_1_1_multiplayer_invitation)s and [TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)es, grouped for conventient display in UI.\n\nThis struct will only contain valid data if `IsSuccess(status)`. \n\n### invitations\n\n```c++\nstd::vector\u003c MultiplayerInvitation \u003e gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::invitations\n``` \nA vector of all [MultiplayerInvitation](/games/services/cpp/api/class/gpg/multiplayer-invitation#classgpg_1_1_multiplayer_invitation)s.\n\nInvitations are sorted by last update time. \n\n### my_turn_matches\n\n```c++\nstd::vector\u003c TurnBasedMatch \u003e gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::my_turn_matches\n``` \nA vector of [TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)es with [MatchStatus](/games/services/cpp/api/namespace/gpg#namespacegpg_1a3f70b0925521329511a6994f44a11cbe)`MY_TURN` or `PENDING_COMPLETION`.\n\nMatches are sorted by last update time. \n\n### status\n\n```c++\nMultiplayerStatus gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::status\n``` \nThe `MultiplayerStatus` of the operation that generated this `Response`. \n\n### their_turn_matches\n\n```c++\nstd::vector\u003c TurnBasedMatch \u003e gpg::TurnBasedMultiplayerManager::TurnBasedMatchesResponse::their_turn_matches\n``` \nA vector of [TurnBasedMatch](/games/services/cpp/api/class/gpg/turn-based-match#classgpg_1_1_turn_based_match)es with [MatchStatus](/games/services/cpp/api/namespace/gpg#namespacegpg_1a3f70b0925521329511a6994f44a11cbe)`THEIR_TURN`.\n\nMatches are sorted by last update time."]]