| | |
| | | } |
| | | |
| | | // 这边来的可以没有队伍类型 |
| | | public TeamBase(HB424_tagSCTurnFightInit.tagSCTurnFightLineup lineUp) |
| | | public TeamBase(HB424_tagSCTurnFightInit.tagSCTurnFightLineup lineUp, bool isBoss = false) |
| | | { |
| | | if (isBoss) |
| | | { |
| | | tempHeroes = new TeamHero[TeamConst.MaxTeamSlotCount]; |
| | | serverHeroes = new TeamHero[TeamConst.MaxTeamSlotCount]; |
| | | } |
| | | teamIndex = lineUp.Num; |
| | | playerId = lineUp.OwnerID; |
| | | ShapeType = lineUp.ShapeType; |
| | |
| | | } |
| | | |
| | | //checkLock :是否验证上阵人数限制 |
| | | //targetPosition 从0开始 |
| | | public void AddHero(HeroInfo heroInfo, int targetPosition, bool checkLock) |
| | | { |
| | | if (targetPosition < 0 || targetPosition >= tempHeroes.Length) |