| | |
| | | |
| | | var serverIDList = act.GetServerIDList(); |
| | | if (serverIDList.Count == 0) return; |
| | | UIHelper.ShowServersPanel(serverIDList); |
| | | |
| | | if (null == VersionConfig.config) |
| | | { |
| | | throw new System.Exception("VersionConfig is null when show LianQi server list, check VersionConfig.GetAsync for more details"); |
| | | } |
| | | |
| | | var openedServerIDList = new List<int>(); |
| | | for (int i = 0; i < serverIDList.Count; i++) |
| | | { |
| | | int serverID = serverIDList[i]; |
| | | if (VersionConfig.config.isBanShu) |
| | | { |
| | | if (serverID != 8000) |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | if (serverID == 8000) |
| | | continue; |
| | | } |
| | | |
| | | var serverData = ServerListCenter.Instance.GetServerDataEx(serverID); |
| | | if (serverData.running_status == (int)ServerState.Predicted |
| | | || serverData.statue != 1) |
| | | continue; |
| | | |
| | | openedServerIDList.Add(serverID); |
| | | } |
| | | |
| | | if (openedServerIDList.Count == 0) return; |
| | | UIHelper.ShowServersPanel(openedServerIDList); |
| | | }); |
| | | } |
| | | |