MCPcopy Create free account
hub / github.com/ddnet/ddnet / HasType

Method HasType

src/engine/client/serverbrowser.cpp:1758–1763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1756}
1757
1758bool 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
1765CServerInfo::ERankState CCommunity::HasRank(const char *pMap) const
1766{

Callers 1

CleanMethod · 0.80

Calls 4

str_compFunction · 0.85
beginMethod · 0.80
endMethod · 0.80
NameMethod · 0.45

Tested by

no test coverage detected