Example #1
0
 public void GenerateCollection(CollectionGeneratorConfiguration configuration)
 {
     if (_userTopGenerator == null)
     {
         _userTopGenerator = new UserTopGenerator(configuration.ApiKey, _loadedBeatmaps);
     }
     if (_processingThread == null || !_processingThread.IsAlive)
     {
         _processingThread = new Thread(() =>
         {
             Collections = _userTopGenerator.GetPlayersCollections(configuration, Log);
         });
         _processingThread.Start();
     }
 }
Example #2
0
 public string CreateCollectionName(ApiScore score, string username, string collectionNameFormat)
 {
     return(UserTopGenerator.CreateCollectionName(score, username, collectionNameFormat));
 }