예제 #1
0
        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());
        }
예제 #2
0
        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());
        }
예제 #3
0
        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());
        }
예제 #4
0
        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());
        }
예제 #5
0
        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());
        }
예제 #6
0
        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());
        }
예제 #7
0
 public override bool Contains(string value)
 {
     return(GroupList.Any(p => string.Compare(p, value, StringComparison.InvariantCultureIgnoreCase) == 0));
 }