Merge pull request #11431 from endragor/game-center-player-id

Return player ID after connecting to Game Center

[ci skip]
This commit is contained in:
Rémi Verschelde 2017-09-20 09:30:16 +02:00 committed by GitHub
commit 46c28a0aca

View file

@ -89,6 +89,7 @@ Error GameCenter::connect() {
ret["type"] = "authentication"; ret["type"] = "authentication";
if (player.isAuthenticated) { if (player.isAuthenticated) {
ret["result"] = "ok"; ret["result"] = "ok";
ret["player_id"] = player.playerID;
GameCenter::get_singleton()->connected = true; GameCenter::get_singleton()->connected = true;
} else { } else {
ret["result"] = "error"; ret["result"] = "error";