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); }
public string GetDivisionName(Character member) { GroupDivision div = Divisions.Find(x => x.DatabaseId == member.DivisionId); if (div != null) { return(div.Name); } else { return(""); } }
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(""); } }
public bool TryGetDivision(Character member, out GroupDivision div) { div = Divisions.Find(x => x.DatabaseId == member.DivisionId); return(div != null); }