| | |
| | | return new Int2((int)country, maxValue); |
| | | } |
| | | |
| | | //AttackType 0 攻击阵容 1 防守阵容 |
| | | int GetSelectTeamTypeByAttackType(int AttackType) |
| | | //在不同页签下选AttackType 0 攻击阵容 1 防守阵容 |
| | | public int GetSelectTeamTypeByAttackType(int AttackType) |
| | | { |
| | | if (selectTeamType == TeamType.Arena) |
| | | if (selectTeamType == TeamType.Arena || selectTeamType == TeamType.ArenaDefense) |
| | | { |
| | | if (AttackType == 0) |
| | | { |
| | | return (int)TeamType.Arena; |
| | | return AttackType == 0 ? (int)TeamType.Arena : (int)TeamType.ArenaDefense; |
| | | } |
| | | else if (AttackType == 1) |
| | | { |
| | | return (int)TeamType.ArenaDefense; |
| | | } |
| | | } |
| | | else if (selectTeamType == TeamType.ArenaDefense) |
| | | { |
| | | if (AttackType == 0) |
| | | { |
| | | return (int)TeamType.ArenaDefense; |
| | | } |
| | | else if (AttackType == 1) |
| | | { |
| | | return (int)TeamType.Arena; |
| | | } |
| | | } |
| | | |
| | | |
| | | return (int)TeamType.Story; |
| | | } |