private ConnAppProc CreateConnApp(eServerType server_type) { ConnAppProc app_server = null; switch (server_type) { case eServerType.GATE: app_server = new GateMsgProc(); break; case eServerType.SERVER: app_server = new ServerMsgProc(); break; case eServerType.FIGHT: app_server = new FightMsgProc(); break; default: Log.Warning("错误的服务器类型:" + server_type); return(null); } app_server.Setup(); return(app_server); }
public ClientNetManager() { m_send_by = NetUtils.AllocSendPacket(); m_msg_proc = new ServerMsgProc(); }