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

Method SelectedCommunities

src/engine/client/serverbrowser.cpp:1786–1797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1784}
1785
1786std::vector<const CCommunity *> CServerBrowser::SelectedCommunities() const
1787{
1788 std::vector<const CCommunity *> vpSelected;
1789 for(const auto &Community : Communities())
1790 {
1791 if(!CommunitiesFilter().Filtered(Community.Id()))
1792 {
1793 vpSelected.push_back(&Community);
1794 }
1795 }
1796 return vpSelected;
1797}
1798
1799std::vector<const CCommunity *> CServerBrowser::FavoriteCommunities() const
1800{

Callers

nothing calls this directly

Calls 3

CommunitiesClass · 0.85
FilteredMethod · 0.80
IdMethod · 0.45

Tested by

no test coverage detected