Exemplo n.º 1
0
        /// <summary>
        /// Registers an automatic effector.
        /// </summary>
        /// <param name="mask"></param>
        /// <param name="effector"></param>
        public void RegisterAutomaticEffector(ulong mask, Effectors.IEffector effector)
        {
            AutomaticEffector ef = new AutomaticEffector();

            ef.Mask     = mask;
            ef.Effector = effector;

            effectors.Add(ef);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Unregisters an autoamtic effector.
 /// </summary>
 /// <param name="effector"></param>
 public void UnRegisterAutomaticEffector(Effectors.IEffector effector)
 {
     effectors.RemoveAll(delegate(AutomaticEffector ef) { return(ef.Effector == effectors); });
 }