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

Method FavoriteCommunities

src/engine/client/serverbrowser.cpp:1799–1813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1797}
1798
1799std::vector<const CCommunity *> CServerBrowser::FavoriteCommunities() const
1800{
1801 // This is done differently than SelectedCommunities because the favorite
1802 // communities should be returned in the order specified by the user.
1803 std::vector<const CCommunity *> vpFavorites;
1804 for(const auto &CommunityId : FavoriteCommunitiesFilter().Entries())
1805 {
1806 const CCommunity *pCommunity = Community(CommunityId.Id());
1807 if(pCommunity)
1808 {
1809 vpFavorites.push_back(pCommunity);
1810 }
1811 }
1812 return vpFavorites;
1813}
1814
1815std::vector<const CCommunity *> CServerBrowser::CurrentCommunities() const
1816{

Callers 6

ConchainUiPageUpdateMethod · 0.80
UpdateCommunityCacheMethod · 0.80
RenderMenubarMethod · 0.80
OnInitMethod · 0.80
RenderInGameNetworkMethod · 0.80
UpdateMethod · 0.80

Calls 1

IdMethod · 0.45

Tested by

no test coverage detected