Explorar o código

Return player ID after connecting to Game Center

Ruslan Mustakov %!s(int64=8) %!d(string=hai) anos
pai
achega
a84093559c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      platform/iphone/game_center.mm

+ 1 - 0
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";