PRoConEvents.MULTIbalancer.GetSquadsWithClanTagOrFriendex C# (CSharp) Method

GetSquadsWithClanTagOrFriendex() private method

private GetSquadsWithClanTagOrFriendex ( String id, SquadRoster>.Dictionary squads ) : List
id String
squads SquadRoster>.Dictionary
return List
        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;
        }
MULTIbalancer