public void AddCommand(string cmd, EventCallBack cb) { if (eventLib == null) { eventLib = new NotiLib <string>(); } eventLib.AddEvent(cmd, cb); }
/// <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); }
public void Clear() { eventLib = null; OnClear(); }
public void Clear() { sendEvets = null; OnClear(); }