public static List <ReferenceHub> GetHubList(RoleType role) { List <ReferenceHub> mslist = new List <ReferenceHub>(); foreach (ReferenceHub player in role.GetHubs()) { mslist.Add(player); } return(mslist); }