Exemplo n.º 1
0
        public void RemovePostProcess(APostProcess postProcess)
        {
            var p = _postProcesses.FirstOrDefault(v => v.Value == postProcess);

            if (p.Value != null)
            {
                _postProcesses.Remove(p.Key);
                Log.Debug($"Removed {postProcess.GetType().Name}");
            }
        }
Exemplo n.º 2
0
        public void AddPostProcess(APostProcess postProcess)
        {
            if (_postProcesses.ContainsValue(postProcess))
            {
                return;
            }

            Log.Debug($"Added {postProcess.GetType().Name}");
            _postProcesses.Add(++_maxOrder, postProcess);
        }
Exemplo n.º 3
0
 public void AddPostProcess(APostProcess postProcess, int order)
 {
     _postProcesses.Add(order, postProcess);
     _maxOrder = Math.Max(_maxOrder, order);
 }
Exemplo n.º 4
0
 public void Init()
 {
     _finalProcess = new FinalPostProcess();
     _postProcesses.Clear();
     AddPostProcess(_finalProcess, int.MaxValue);
 }