Type Function Return value none Revision Release 2024.3703 Keywords Google Play Games Services, game network, gpgs, multiplayer, turn-based, finish See also gpgs.multiplayer.turnbased gpgs.multiplayer gpgs.*
Indicates that a participant is finished with a match. Optionally sends match results to specified participants.
gpgs.multiplayer.turnbased.finish( params )
Table. Contains parameters for the call — see the next section for details.
The params
table contains parameters for the call.
String. The multiplayer match ID.
String. Match data to send to other participants. This has a size limit as noted in gpgs.multiplayer.getLimits().
Array. Populate with result table elements as defined in the next section. The client which calls finish()
is responsible for reporting the results for all appropriate participants in the match. Not every participant is required to have a result, but providing results for participants who are not in the match is an error.
The results
array can be populated with child tables, each containing individual participant details:
String. Participant to send the result to.
String. The result of the match. Can be either "disagreed"
, "disconnect"
, "loss"
, "tie"
, "win"
, or "none"
. Default is "none"
.