コード例 #1
0
        private T AddJob <T>(T job) where T : ILoadJob
        {
            job.OnStart = (_) => OnStartAny?.Invoke();
            job.OnStop  = (_) => OnStopAny?.Invoke();

            return(job);
        }
コード例 #2
0
        public IPreloadOperation Prepare(string path)
        {
            Recorder.Catch("Cri Movie", path);
            var operation = new PreloadOperation(SkipLoadProcess.Create(path));

            operation.OnStart = _ => OnStartAny?.Invoke();
            operation.OnStop  = _ => OnStopAny?.Invoke();
            return(m_routine.Register(operation));
        }
コード例 #3
0
        public IPreloadOperation Prepare(string cueSheetName)
        {
            Recorder.Catch("Cri Sound", cueSheetName);
            var operation = new PreloadOperation(SkipLoadProcess.Create(cueSheetName));

            operation.OnStart = _ => OnStartAny?.Invoke();
            operation.OnStop  = _ => OnStopAny?.Invoke();
            return(m_routine.Register(operation));
        }