public CMsgWarBegin(Monsterteam att, Monsterteam def, int[] attAoYi, int[] defAoYi) { status = CMsgHeader.STATUS_WAR_BEGIN; attTeam = att; defTeam = def; this.attAoYi = attAoYi; this.defAoYi = defAoYi; }
public Monsterteam toMonsterTeam() { Monsterteam teamInfo = new Monsterteam() { angryCnt = (short)_angryCnt, roleId = _usrId, type = _tName == "Att" ? (short)0 : (short)1, team = new Monster[_team.Count], }; int length = _team.Count; for (int i = 0; i < length; ++i) { teamInfo.team[i] = _team[i].toMonster(); } return(teamInfo); }