Beispiel #1
0
 public void AddCommand(string cmd, EventCallBack cb)
 {
     if (eventLib == null)
     {
         eventLib = new NotiLib <string>();
     }
     eventLib.AddEvent(cmd, cb);
 }
Beispiel #2
0
 /// <summary>
 /// 发送Proto
 /// </summary>
 /// <param name="cmd"></param>
 /// <param name="cb"></param>
 protected void RegisterSendProto(byte cmd, EventCallBack cb)
 {
     if (sendEvets == null)
     {
         sendEvets = new NotiLib <byte>();
     }
     sendEvets.AddEvent(cmd, cb);
 }
Beispiel #3
0
 public void Clear()
 {
     eventLib = null;
     OnClear();
 }
Beispiel #4
0
 public void Clear()
 {
     sendEvets = null;
     OnClear();
 }