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

Method NextCommandInfo

src/engine/shared/console.cpp:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104const IConsole::ICommandInfo *CConsole::NextCommandInfo(const IConsole::ICommandInfo *pInfo, int ClientId, int FlagMask) const
105{
106 const CCommand *pNext = ((CCommand *)pInfo)->Next();
107 while(pNext)
108 {
109 if(pNext->m_Flags & FlagMask && CanUseCommand(ClientId, pNext))
110 break;
111 pNext = pNext->Next();
112 }
113 return pNext;
114}
115
116std::optional<CConsole::EAccessLevel> CConsole::AccessLevelToEnum(const char *pAccessLevel)
117{

Callers 4

ConPracticeCmdListMethod · 0.80
OnClientEnterMethod · 0.80
NumRconCommandsMethod · 0.80

Calls 1

NextMethod · 0.45

Tested by

no test coverage detected