Spring.GetPlayerInfo: customPlayerKeys setup
Posted: 15 Jul 2013, 09:58
I've been looking at the LUA Spring API and came across an old familiar that I'm going to need a lot. At a certain point in time I will need to supply some kind of hashkey to a player for a secure REST call to a webapi. I was wondering about several sollutions I could try. But then I saw the customPlayerKeys return value. If it does what I think it does aka add metadata to a player, then I could use that to put the hashkey in. Now my question is , how does that customPlayerKeys table get filled ? I suppose a lobby client needs to fill it when the game launches ?
for reference:
for reference:
Code: Select all
Spring.GetPlayerInfo( number playerID ) ->
nil | string "name",
boolean active,
boolean spectator,
number teamID,
number allyTeamID,
number pingTime,
number cpuUsage,
string country,
number rank
table customPlayerKeys