aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Mustakov2017-09-20 11:48:10 +0700
committerRuslan Mustakov2017-09-20 11:48:10 +0700
commita84093559cfc4038b44894441b494d1a395d510c (patch)
tree753f8d7565ba3e9e1e07cfd4eab7e6b21d75f884
parentcd2ffdc6725aa6f7a9a4af6fd5abcc4cafae61b4 (diff)
downloadgodot-a84093559cfc4038b44894441b494d1a395d510c.tar.gz
godot-a84093559cfc4038b44894441b494d1a395d510c.tar.zst
godot-a84093559cfc4038b44894441b494d1a395d510c.zip
Return player ID after connecting to Game Center
Diffstat (limited to '')
-rw-r--r--platform/iphone/game_center.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/iphone/game_center.mm b/platform/iphone/game_center.mm
index c05bdea00..821ef2a3a 100644
--- a/platform/iphone/game_center.mm
+++ b/platform/iphone/game_center.mm
@@ -89,6 +89,7 @@ Error GameCenter::connect() {
ret["type"] = "authentication";
if (player.isAuthenticated) {
ret["result"] = "ok";
+ ret["player_id"] = player.playerID;
GameCenter::get_singleton()->connected = true;
} else {
ret["result"] = "error";