| 1756 | } |
| 1757 | |
| 1758 | bool CCommunity::HasType(const char *pTypeName) const |
| 1759 | { |
| 1760 | return std::find_if(Types().begin(), Types().end(), [pTypeName](const auto &Elem) { |
| 1761 | return str_comp(Elem.Name(), pTypeName) == 0; |
| 1762 | }) != Types().end(); |
| 1763 | } |
| 1764 | |
| 1765 | CServerInfo::ERankState CCommunity::HasRank(const char *pMap) const |
| 1766 | { |