Example #1
0
 public AtomizerEffectGroup Chain(AtomizerEffect effect)
 {
     if (allEffects.ContainsKey(chainedEffectIndex))
     {
         ++chainedEffectIndex;
     }
     return(Combine(effect));
 }
Example #2
0
 public AtomizerEffectGroup Combine(AtomizerEffect effect)
 {
     if (allEffects.ContainsKey(chainedEffectIndex))
     {
         List <AtomizerEffect> effects = allEffects[chainedEffectIndex];
         effects.Add(effect);
     }
     else
     {
         List <AtomizerEffect> effects = new List <AtomizerEffect>();
         effects.Add(effect);
         allEffects.Add(chainedEffectIndex, effects);
     }
     return(this);
 }
 public AtomizerEffectGroup Combine(AtomizerEffect effect)
 {
     if (allEffects.ContainsKey(chainedEffectIndex))
     {
         List<AtomizerEffect> effects = allEffects[chainedEffectIndex];
         effects.Add(effect);
     }
     else
     {
         List<AtomizerEffect> effects = new List<AtomizerEffect>();
         effects.Add(effect);
         allEffects.Add(chainedEffectIndex, effects);
     }
     return this;
 }
 public AtomizerEffectGroup Chain(AtomizerEffect effect)
 {
     if (allEffects.ContainsKey(chainedEffectIndex))
     {
         ++chainedEffectIndex;
     }
     return Combine(effect);
 }