Closed rmtuckerphx closed 4 years ago
Good question - instead of calling newPlayer
you would look up the available tournaments using getMatchListForPlayer
and then call enterMatch
with the tournament ID for your monthly tournament. This should be fairly simple if you're only running a single monthly tournament at a time, but you might need to add some logic to select the right one if you're running more than one tournament at a time.
Question
What would the code in
LaunchRequestHandler
look like if we wanted to support monthly leaderboards?There are comments in the code for
enterMatch
that referencesgetTournamentsByTitle
andgetMatchListForPlayer
.The following functions use
matchId
:enterMatch
submitScore
getPlayerScore
getLeaderboard
The following function uses
tournamentId
:newPlayer