voidonEventLeaderboardDebugFill(constHiro::EventLeaderboard&eventLeaderboard){std::cout<<"Filled event leaderboard with debug users: "<<eventLeaderboard.name<<'\n';}voidonEventLeaderboardDebugRandomScores(constHiro::EventLeaderboard&eventLeaderboard){std::cout<<"Random scores generated for event leaderboard: "<<eventLeaderboard.name<<'\n';}voidonFillError(constNakama::NError&error){std::cout<<Nakama::toString(error.code)<<": "<<error.message<<'\n';}voidonScoresError(constNakama::NError&error){std::cout<<Nakama::toString(error.code)<<": "<<error.message<<'\n';}Hiro::EventLeaderboardDebugFillRequestfillRequest;fillRequest.id="leaderboard_1";fillRequest.targetCount=50;// Optional target cohort size to fill to, otherwise fill to the max cohort size.
Hiro::EventLeaderboardDebugRandomScoresRequestscoresRequest;scoresRequest.id="leaderboard_1";scoresRequest.min="1";scoresRequest.max="100";scoresRequest.subscoreMin="1";scoresRequest.subscoreMax="100";// Fills cohort with debug players
hiroClient->eventLeaderboardDebugFill(session,fillRequest,onEventLeaderboardDebugFill,onFillError);// Sets randomly generated scores between a range for other players (does not change the user's score)
hiroClient->eventLeaderboardDebugRandomScores(session,scoresRequest,onEventLeaderboardDebugRandomScores,onScoresError);