Return player ID after connecting to Game Center
This commit is contained in:
parent
cd2ffdc672
commit
a84093559c
1 changed files with 1 additions and 0 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue