void RegistPacketHandler() { CommonHandler = new PacketHandler.Common(); CommonHandler.Init(ServerNetworkRef, DBManagerRef, UserManagerInst); PacketHandlerMap.Add((ushort)CSCommonLib.PACKET_ID.SYSTEM_CLIENT_CONNECT, CommonHandler.SystemClientConnect); PacketHandlerMap.Add((ushort)CSCommonLib.PACKET_ID.SYSTEM_CLIENT_DISCONNECTD, CommonHandler.SystemClientDisConnected); PacketHandlerMap.Add((ushort)CSCommonLib.PACKET_ID.REQUEST_LOGIN, CommonHandler.RequestLogin); PacketHandlerMap.Add((ushort)CSCommonLib.PACKET_ID.REQUEST_ENTER_LOBBY, CommonHandler.RequestEnterLobby); PacketHandlerMap.Add((ushort)CSCommonLib.PACKET_ID.DB_RESPONSE_LOGIN, CommonHandler.DBResponseLogin); PacketHandlerMap.Add((ushort)CSCommonLib.PACKET_ID.INNER_NOTIFY_ENTER_LOBBY, CommonHandler.InnerNotifyEnterLobby); PacketHandlerMap.Add((ushort)CSCommonLib.PACKET_ID.INNER_NOTIFY_LEAVE_LOBBY, CommonHandler.InnerNotifyLeaveLobby); }