Beispiel #1
0
 public void DelEvent(int e_id, EventMsgHandler action)
 {
     if (_events.ContainsKey(e_id) && _events[e_id] != null)
     {
         _events[e_id] -= action;
     }
 }
Beispiel #2
0
 public void ListenEvent(int e_id, EventMsgHandler action)
 {
     if (_events.ContainsKey(e_id))
     {
         _events[e_id] += action;
     }
     else
     {
         _events[e_id] = action;
     }
 }
Beispiel #3
0
 public void ListenEvent(int id, EventMsgHandler e)
 {
     EventGroup.ListenEvent(id, e);
 }
Beispiel #4
0
 public void DelEvent(int id, EventMsgHandler e)
 {
     EventGroup.DelEvent(id, e);
 }
Beispiel #5
0
 public void DelEvent(int id, EventMsgHandler e)
 {
     EventDispatcher.DelEvent(id, e);
 }
Beispiel #6
0
 public void ListenEvent(int id, EventMsgHandler e)
 {
     EventDispatcher.ListenEvent(id, e);
 }