예제 #1
0
        /// <summary>
        /// Remove an effect to this object.
        /// </summary>
        /// <param name="Target">Effect to remove.</param>
        public void RemoveEffect(IEffect Target)
        {
            if (!Effects.Contains(Target))
            {
                return;
            }

            foreach (IMixableComponent Elem in Channels.Values)
            {
                Elem.RemoveEffect(Target);
            }

            Effects.Remove(Target);
        }