示例#1
0
        public void RegMsg(MsgType msgType, MsgFunc msgCB)
        {
            if (msgCB != null)
            {
                if (!msgFuncMap.ContainsKey(msgType))
                {
                    msgFuncMap[msgType] = new List <MsgFunc>();
                }

                List <MsgFunc> msgCBList = msgFuncMap[msgType];
                msgCBList.Add(msgCB);
            }
        }
示例#2
0
 public static extern void SetMsgFunc(IntPtr ctx, MsgFunc pfn, IntPtr messenger);