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

Method Con_AddExcludedType

src/engine/client/serverbrowser.cpp:185–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void CServerBrowser::Con_AddExcludedType(IConsole::IResult *pResult, void *pUserData)
186{
187 CServerBrowser *pThis = static_cast<CServerBrowser *>(pUserData);
188 const char *pCommunityId = pResult->GetString(0);
189 const char *pTypeName = pResult->GetString(1);
190 if(!pThis->ValidateCommunityId(pCommunityId) || !pThis->ValidateTypeName(pTypeName))
191 return;
192 pThis->TypesFilter().Add(pCommunityId, pTypeName);
193}
194
195void CServerBrowser::Con_RemoveExcludedType(IConsole::IResult *pResult, void *pUserData)
196{

Callers

nothing calls this directly

Calls 4

ValidateCommunityIdMethod · 0.80
ValidateTypeNameMethod · 0.80
GetStringMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected