Exemplo n.º 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);
            }
        }
Exemplo n.º 2
0
 public static extern void SetMsgFunc(IntPtr ctx, MsgFunc pfn, IntPtr messenger);