コード例 #1
0
 public ArcModGeneratorService(IResourceService resourceService, IParacobService paracobService, INus3AudioService nus3AudioService,
                               IMsbtService msbtService, IBgmPropertyService bgmPropertyService, IWorkspaceManager workspace, ILogger <IArcModGeneratorService> logger)
 {
     _logger             = logger;
     _resourceService    = resourceService;
     _workspace          = workspace;
     _nus3AudioService   = nus3AudioService;
     _msbtService        = msbtService;
     _bgmPropertyService = bgmPropertyService;
     _paracobService     = paracobService;
 }
コード例 #2
0
ファイル: MusicModManager.cs プロジェクト: soneek/Sm5shMusic
        public MusicModManager(IAudioMetadataService audioMetadataService, IParacobService paracobService, ILogger <IMusicModManager> logger, string musicModPath)
        {
            _musicModPath         = musicModPath;
            _audioMetadataService = audioMetadataService;
            _paracobService       = paracobService;
            _logger     = logger;
            _bgmEntries = new Dictionary <string, MusicModBgmEntry>();

            //Load Mod
            var metadataFile = GetMusicModMetadataFile();

            if (File.Exists(metadataFile))
            {
                var file = File.ReadAllText(metadataFile);
                _musicModConfig = JsonConvert.DeserializeObject <MusicModConfig>(file);
            }
            else
            {
                //Cannot load music mod
                _logger.LogError("MusicModFile {MusicModFile} does not exist!", metadataFile);
            }
        }