| | |
| | | public void OnGetTheirTeams(HB904_tagGCSceneTeamRefresh _teamInfo)
|
| | | {
|
| | | theirTeams.Clear();
|
| | |
|
| | | for (int i = 0; i < _teamInfo.SceneTeamList.Length; i++)
|
| | | {
|
| | | theirTeams.Add(new TheirTeam(_teamInfo.SceneTeamList[i]));
|
| | | }
|
| | |
|
| | | theirTeams.Sort(
|
| | | (TheirTeam a, TheirTeam b) =>
|
| | | {
|
| | | return a.memberCount < 4 && a.memberCount > b.memberCount ? -1 : 1;
|
| | | }
|
| | | );
|
| | |
|
| | | theirTeams.Sort(TheirTeam.Sort);
|
| | | if (theirTeamListRefreshEvent != null)
|
| | | {
|
| | | theirTeamListRefreshEvent();
|
| | |
| | | public void OnGetTheirTeams(HB909_tagGCTagMapTeamList _teamInfo)
|
| | | {
|
| | | theirTeams.Clear();
|
| | |
|
| | | for (int i = 0; i < _teamInfo.TeamList.Length; i++)
|
| | | {
|
| | | theirTeams.Add(new TheirTeam((int)_teamInfo.TagMapID, _teamInfo.IsTagEx == 1 ? _teamInfo.TagMapEx : -1, _teamInfo.MatchState == 1, _teamInfo.TeamList[i]));
|
| | | var mapId = (int)_teamInfo.TagMapID;
|
| | | var isTagEx = _teamInfo.IsTagEx == 1 ? _teamInfo.TagMapEx : -1;
|
| | | var matchState = _teamInfo.MatchState == 1;
|
| | |
|
| | | theirTeams.Add(new TheirTeam(mapId, isTagEx, matchState, _teamInfo.TeamList[i]));
|
| | | }
|
| | |
|
| | | theirTeams.Sort(
|
| | | (TheirTeam a, TheirTeam b) =>
|
| | | {
|
| | | return a.memberCount < 4 && a.memberCount > b.memberCount ? -1 : 1;
|
| | | }
|
| | | );
|
| | |
|
| | | theirTeams.Sort(TheirTeam.Sort);
|
| | | if (theirTeamListRefreshEvent != null)
|
| | | {
|
| | | theirTeamListRefreshEvent();
|