FHiroEventLeaderboardDebugFillRequestFillRequest;FillRequest.Id=TEXT("leaderboard_1");FillRequest.TargetCount=50;// Optional target cohort size to fill to, otherwise fill to the max cohort size.
FHiroEventLeaderboardDebugRandomScoresRequestScoresRequest;ScoresRequest.Id=TEXT("leaderboard_1");ScoresRequest.Min=1;ScoresRequest.Max=100;ScoresRequest.SubscoreMin=1;ScoresRequest.SubscoreMax=100;FHiroOnEventLeaderboardDebugFillOnEventLeaderboardDebugFill;OnEventLeaderboardDebugFill.AddDynamic(this,&AMyActor::OnEventLeaderboardDebugFill);FOnErrorOnFillError;FHiroOnEventLeaderboardDebugRandomScoresOnEventLeaderboardDebugRandomScores;OnEventLeaderboardDebugRandomScores.AddDynamic(this,&AMyActor::OnEventLeaderboardDebugRandomScores);FOnErrorOnScoresError;// 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);voidAMyActor::OnEventLeaderboardDebugFill(constFHiroEventLeaderboard&EventLeaderboard){UE_LOG(LogTemp,Log,TEXT("%s"),*EventLeaderboard.ToJson());}voidAMyActor::OnEventLeaderboardDebugRandomScores(constFHiroEventLeaderboard&EventLeaderboard){UE_LOG(LogTemp,Log,TEXT("%s"),*EventLeaderboard.ToJson());}