public bool GetCompanyRemoveList(int companyId, int rank, out List <int> companyRemoveList) { companyRemoveList = new GroupList(); GetCompanyAddList(companyId, rank, out var companyAddList); if (!companyTableEfficient.ContainsKey(companyId)) { return(false); } foreach (var companyTable in companyTableEfficient[companyId]) { foreach (var groupId in companyTable.Value) { if (companyAddList.Contains(groupId)) { continue; } if (!companyRemoveList.Contains(groupId)) { companyRemoveList.Add(groupId); } } } return(companyRemoveList.Any()); }
public bool GetFactionRemoveList(int factionId, int rank, out List <int> factionRemoveList) { factionRemoveList = new GroupList(); GetFactionAddList(factionId, rank, out var factionAddList); if (!factionTableEfficient.ContainsKey(factionId)) { return(false); } foreach (var factionTable in factionTableEfficient[factionId]) { foreach (var groupId in factionTable.Value) { if (factionAddList.Contains(groupId)) { continue; } if (!factionRemoveList.Contains(groupId)) { factionRemoveList.Add(groupId); } } } return(factionRemoveList.Any()); }
public bool GetGangRemoveList(int gangId, int rank, out List <int> gangRemoveList) { gangRemoveList = new GroupList(); GetGangAddList(gangId, rank, out var gangAddList); if (!gangTableEfficient.ContainsKey(gangId)) { return(false); } foreach (var gangTable in gangTableEfficient[gangId]) { foreach (var groupId in gangTable.Value) { if (gangAddList.Contains(groupId)) { continue; } if (!gangRemoveList.Contains(groupId)) { gangRemoveList.Add(groupId); } } } return(gangRemoveList.Any()); }
public bool GetFactionAddList(int factionId, int rank, out List <int> factionAddList) { factionAddList = new GroupList(); if (factionTableEfficient.ContainsKey(factionId) && factionTableEfficient[factionId].ContainsKey(rank)) { factionAddList = factionTableEfficient[factionId][rank]; } return(factionAddList.Any()); }
public bool GetCompanyAddList(int companyId, int rank, out List <int> companyAddList) { companyAddList = new GroupList(); if (companyTableEfficient.ContainsKey(companyId) && companyTableEfficient[companyId].ContainsKey(rank)) { companyAddList = companyTableEfficient[companyId][rank]; } return(companyAddList.Any()); }
public bool GetGangAddList(int gangId, int rank, out List <int> gangAddList) { gangAddList = new GroupList(); if (gangTableEfficient.ContainsKey(gangId) && gangTableEfficient[gangId].ContainsKey(rank)) { gangAddList = gangTableEfficient[gangId][rank]; } return(gangAddList.Any()); }
public override bool Contains(string value) { return(GroupList.Any(p => string.Compare(p, value, StringComparison.InvariantCultureIgnoreCase) == 0)); }