Transfer user metadata on game start?

0 votes
Hi Guys,

In my 2 players turn-based online game I'de like to transfer some metadata on the players before the game begins (besides username). For exmaple, passing the user ratings/country so I can display the opponent who is he playing against.

I looked at these methods but I can't get any metadata from it:

onGameStarted(string sender, string roomId, string nextTurn)

onUserJoinedRoom(RoomData eventObj, String username)

 

Any suggestios?

 

Thanks,

Noam
asked Apr 4, 2014 in Discuss & suggest API by noambehar1 (37 points)

1 Answer

0 votes
 
Best answer

You can use room properties for this.

See this.

answered Apr 5, 2014 by dhruvc (1,099 points)
selected Apr 5, 2014 by noambehar1
Thanks, worked!
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...