public AtomizerEffectGroup Chain(AtomizerEffect effect) { if (allEffects.ContainsKey(chainedEffectIndex)) { ++chainedEffectIndex; } return(Combine(effect)); }
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); }