public void RegisterHandler(Type protoType, IPacketHandler handler) { if (null != handler) { mHandlerDict.Add(handler.GetPacketType(), new PacketHandlerInfo(protoType, handler)); } }
public void RegisterHandler(Type protoType, IPacketHandler handler) { if (null != handler) { mHandlerDict.Add(handler.GetPacketType(), new PacketHandlerInfo(protoType, handler)); } }