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

Method Community

src/engine/client/serverbrowser.cpp:1778–1784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1776}
1777
1778const CCommunity *CServerBrowser::Community(const char *pCommunityId) const
1779{
1780 const auto Community = std::find_if(Communities().begin(), Communities().end(), [pCommunityId](const auto &Elem) {
1781 return str_comp(Elem.Id(), pCommunityId) == 0;
1782 });
1783 return Community == Communities().end() ? nullptr : &(*Community);
1784}
1785
1786std::vector<const CCommunity *> CServerBrowser::SelectedCommunities() const
1787{

Callers 6

RenderMethod · 0.80
RenderPopupFullscreenMethod · 0.80
UpdateMethod · 0.80
RenderServerInfoMethod · 0.80

Calls 5

CommunitiesClass · 0.85
str_compFunction · 0.85
beginMethod · 0.80
endMethod · 0.80
IdMethod · 0.45

Tested by

no test coverage detected