Example #1
0
        public bool UnRegisterHandler(E_EntityEvent key, EventSet <E_EntityEvent, EventSetData> .EventHandler handler, I_Condition condition = null)
        {
            if (condition != null)
            {
                _conditionSet.Remove(key);
            }

            return(_target.UnRegisterHandler(key, handler));
        }
Example #2
0
 public bool UnRegisterHandler(TKey key, EventSet <TKey, EventSetData> .EventHandler handler, I_Condition condition = null)
 {
     if (_conditionSet.ContainsKey(key))
     {
         _conditionSet.Remove(key);
     }
     return(_eventSet.UnRegisterHandler(key, handler));
 }
Example #3
0
 public bool UnRegisterHandler(E_BuffEvent key, EventSet <E_BuffEvent, EventSetData> .EventHandler handler, I_Condition condition = null)
 {
     return(_buffEventSet.UnRegisterHandler(key, handler, condition));
 }
Example #4
0
 public bool RegisterHandler(TKey key, EventSet <TKey, EventSetData> .EventHandler handler, I_Condition condition = null)
 {
     if (condition != null)
     {
         _conditionSet.Add(key, condition);
     }
     return(_eventSet.RegisterHandler(key, handler));
 }