public void SetAIRole(int index, int id, int level, int wuqiId = 0, int fangjuId = 0) { RoleBase role = new RoleBase(); role.SetId(id, level); if (wuqiId != 0) { role.AddEquipMust(new Equip(wuqiId)); } if (fangjuId != 0) { role.AddEquipMust(new Equip(fangjuId)); } fightRoles[index] = role; }