Return player ID after connecting to Game Center

This commit is contained in:
Ruslan Mustakov 2017-09-20 11:48:10 +07:00
parent cd2ffdc672
commit a84093559c

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";