示例#1
0
文件: Group.cs 项目: Yarpii/MTGRP
        public bool TryGetRank(Character member, out GroupRank rank)
        {
            GroupDivision div = Divisions.Find(x => x.DatabaseId == member.DivisionId);

            rank = div.Ranks.Find(x => x.DatabaseId == member.RankId);
            return(rank != null);
        }
示例#2
0
文件: Group.cs 项目: Yarpii/MTGRP
        public string GetDivisionName(Character member)
        {
            GroupDivision div = Divisions.Find(x => x.DatabaseId == member.DivisionId);

            if (div != null)
            {
                return(div.Name);
            }
            else
            {
                return("");
            }
        }
示例#3
0
文件: Group.cs 项目: Yarpii/MTGRP
        public string GetRankName(Character member)
        {
            GroupDivision div  = Divisions.Find(x => x.DatabaseId == member.DivisionId);
            GroupRank     rank = div.Ranks.Find(x => x.DatabaseId == member.RankId);

            if (rank != null)
            {
                return(rank.Name);
            }
            else
            {
                return("");
            }
        }
示例#4
0
文件: Group.cs 项目: Yarpii/MTGRP
 public bool TryGetDivision(Character member, out GroupDivision div)
 {
     div = Divisions.Find(x => x.DatabaseId == member.DivisionId);
     return(div != null);
 }