Ejemplo n.º 1
0
 public BreaktimeLoader(BreaktimeSettings settings, AudioClipAsyncLoader audioClipAsyncLoader, CachedMediaAsyncLoader cachedMediaAsyncLoader)
 {
     _settings                = settings;
     _audioClipAsyncLoader    = audioClipAsyncLoader;
     _cachedMediaAsyncLoader  = cachedMediaAsyncLoader;
     _cancellationTokenSource = new CancellationTokenSource();
     if (!Directory.Exists(IMAGE_FOLDER))
     {
         Directory.CreateDirectory(IMAGE_FOLDER);
     }
     if (!Directory.Exists(AUDIO_FOLDER))
     {
         Directory.CreateDirectory(AUDIO_FOLDER);
     }
     LoadDefaults();
 }
Ejemplo n.º 2
0
 public BreaktimeLoader(BreaktimeSettings settings, CachedMediaAsyncLoader mediaLoader, CachedMediaAsyncLoader spriteLoader)
 {
     _settings                = settings;
     _mediaLoader             = mediaLoader;
     _spriteLoader            = spriteLoader;
     _cancellationTokenSource = new CancellationTokenSource();
     if (!Directory.Exists(IMAGE_FOLDER))
     {
         Directory.CreateDirectory(IMAGE_FOLDER);
     }
     if (!Directory.Exists(AUDIO_FOLDER))
     {
         Directory.CreateDirectory(AUDIO_FOLDER);
     }
     LoadDefaults();
 }
Ejemplo n.º 3
0
 public BreaktimeManager(BreaktimeSettings settings, [InjectOptional] IReadonlyBeatmapData readonlyBeatmapData, [InjectOptional] BeatmapObjectManager beatmapObjectManager)
 {
     _settings             = settings;
     _readonlyBeatmapData  = readonlyBeatmapData;
     _beatmapObjectManager = beatmapObjectManager;
 }
Ejemplo n.º 4
0
 public BreaktimeManager(BreaktimeSettings settings, [InjectOptional] IDifficultyBeatmap difficultyBeatmap, [InjectOptional] BeatmapObjectManager beatmapObjectManager)
 {
     _settings             = settings;
     _difficultyBeatmap    = difficultyBeatmap;
     _beatmapObjectManager = beatmapObjectManager;
 }