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

Method FirstCommandInfo

src/engine/shared/console.cpp:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93const IConsole::ICommandInfo *CConsole::FirstCommandInfo(int ClientId, int FlagMask) const
94{
95 for(const CCommand *pCommand = m_pFirstCommand; pCommand; pCommand = pCommand->Next())
96 {
97 if(pCommand->m_Flags & FlagMask && CanUseCommand(ClientId, pCommand))
98 return pCommand;
99 }
100
101 return nullptr;
102}
103
104const IConsole::ICommandInfo *CConsole::NextCommandInfo(const IConsole::ICommandInfo *pInfo, int ClientId, int FlagMask) const
105{

Callers 4

ConPracticeCmdListMethod · 0.80
OnClientEnterMethod · 0.80
NumRconCommandsMethod · 0.80
OnNetMsgRconAuthMethod · 0.80

Calls 1

NextMethod · 0.45

Tested by

no test coverage detected