예제 #1
0
        public void AddEffect(DspType effect)
        {
            var dsp = _system.CreateDspByType(effect);

            _effects.Add(dsp);
            EffectAdded?.Invoke(this, EventArgs.Empty);
        }
예제 #2
0
 public void AddEffect(ItemEffect effect)
 {
     effects.Add(effect);
     effect.StartTime = stopwatch.ElapsedMilliseconds;
     if (EffectAdded != null)
     {
         EffectAdded.Invoke(effect);
     }
 }