Esempio n. 1
0
        public bool DispatchHandler(int type, byte[] data)
        {
            if (data != null && mHandlerDict.ContainsKey(type))
            {
                IPacketHandler handler = mHandlerDict[type];
                if (null != handler)
                {
                    return(handler.OnPacketHandler(data));
                }
            }

            return(false);
        }