private List<int> GetSquadsWithClanTagOrFriendex(String id, Dictionary<int,SquadRoster> squads)
{
List<int> ret = new List<int>(); // list of keys into squad table
foreach (int key in squads.Keys) {
// anyone in this squad have the matching tagKey?
foreach (PlayerModel mate in squads[key].Roster) {
String tagex = ExtractTagOrFriendex(mate);
if (tagex == id) {
ret.Add(key); // add this squad to the list
break;
}
}
}
return ret;
}