#include <console.h>
|
| | CConsole (int FlagMask) |
| |
| | ~CConsole () |
| |
| void | Init () override |
| |
| const CCommandInfo * | FirstCommandInfo (int AccessLevel, int FlagMask) const override |
| |
| const CCommandInfo * | GetCommandInfo (const char *pName, int FlagMask, bool Temp) override |
| |
| int | PossibleCommands (const char *pStr, int FlagMask, bool Temp, FPossibleCallback pfnCallback, void *pUser) override |
| |
| void | ParseArguments (int NumArgs, const char **ppArguments) override |
| |
| void | Register (const char *pName, const char *pParams, int Flags, FCommandCallback pfnFunc, void *pUser, const char *pHelp) override |
| |
| void | RegisterTemp (const char *pName, const char *pParams, int Flags, const char *pHelp) override |
| |
| void | DeregisterTemp (const char *pName) override |
| |
| void | DeregisterTempAll () override |
| |
| void | Chain (const char *pName, FChainCommandCallback pfnChainFunc, void *pUser) override |
| |
| void | StoreCommands (bool Store) override |
| |
| bool | LineIsValid (const char *pStr) override |
| |
| void | ExecuteLine (const char *pStr, int ClientId=-1, bool InterpretSemicolons=true) override |
| |
| void | ExecuteLineFlag (const char *pStr, int FlagMask, int ClientId=-1, bool InterpretSemicolons=true) override |
| |
| bool | ExecuteFile (const char *pFilename, int ClientId=-1, bool LogFailure=false, int StorageType=IStorage::TYPE_ALL) override |
| |
| void | Print (int Level, const char *pFrom, const char *pStr, ColorRGBA PrintColor=gs_ConsoleDefaultColor) const override |
| |
| void | SetTeeHistorianCommandCallback (FTeeHistorianCommandCallback pfnCallback, void *pUser) override |
| |
| void | SetUnknownCommandCallback (FUnknownCommandCallback pfnCallback, void *pUser) override |
| |
| void | InitChecksum (CChecksumData *pData) const override |
| |
| void | SetAccessLevel (int AccessLevel) override |
| |
| bool | Cheated () const override |
| |
| int | FlagMask () const override |
| |
| void | SetFlagMask (int FlagMask) override |
| |
| | IInterface () |
| |
| virtual void | Shutdown () |
| |
| virtual | ~IInterface ()=default |
| |
|
| enum | {
OUTPUT_LEVEL_STANDARD = 0
, OUTPUT_LEVEL_ADDINFO
, OUTPUT_LEVEL_DEBUG
, ACCESS_LEVEL_ADMIN = 0
,
ACCESS_LEVEL_MOD
, ACCESS_LEVEL_HELPER
, ACCESS_LEVEL_USER
, TEMPCMD_NAME_LENGTH = 64
,
TEMPCMD_HELP_LENGTH = 192
, TEMPCMD_PARAMS_LENGTH = 96
, CMDLINE_LENGTH = 512
, CLIENT_ID_GAME = -2
,
CLIENT_ID_NO_GAME = -3
, FILE_RECURSION_LIMIT = 16
} |
| |
| typedef void(* | FTeeHistorianCommandCallback) (int ClientId, int FlagMask, const char *pCmd, IResult *pResult, void *pUser) |
| |
| typedef void(* | FPossibleCallback) (int Index, const char *pCmd, void *pUser) |
| |
| typedef void(* | FCommandCallback) (IResult *pResult, void *pUserData) |
| |
| typedef void(* | FChainCommandCallback) (IResult *pResult, void *pUserData, FCommandCallback pfnCallback, void *pCallbackUserData) |
| |
| typedef bool(* | FUnknownCommandCallback) (const char *pCommand, void *pUser) |
| |
| IKernel * | Kernel () |
| |
◆ anonymous enum
| Enumerator |
|---|
| CONSOLE_MAX_STR_LENGTH | |
| MAX_PARTS | |
◆ anonymous enum
| Enumerator |
|---|
| PARSEARGS_OK | |
| PARSEARGS_MISSING_VALUE | |
| PARSEARGS_INVALID_INTEGER | |
| PARSEARGS_INVALID_FLOAT | |
◆ CConsole()
| CConsole::CConsole |
( |
int |
FlagMask | ) |
|
◆ ~CConsole()
◆ AccessLevelToInt()
| std::optional< int > CConsole::AccessLevelToInt |
( |
const char * |
pAccessLevel | ) |
|
|
static |
Converts access level string to access level enum (integer).
- Parameters
-
| pAccesssLevel | should be either "admin", "mod", "moderator", "helper" or "user". |
- Returns
std::nullopt on error otherwise one of the auth enums such as ACCESS_LEVEL_ADMIN.
◆ AccessLevelToString()
| const char * CConsole::AccessLevelToString |
( |
int |
AccessLevel | ) |
|
|
static |
Converts access level enum (integer) to access level string.
- Parameters
-
| AccessLevel | should be one of these: ACCESS_LEVEL_ADMIN, ACCESS_LEVEL_MOD, ACCESS_LEVEL_HELPER or ACCESS_LEVEL_USER. |
- Returns
nullptr on error or access level string like "admin".
◆ AddCommandSorted()
◆ Chain()
◆ Cheated()
| bool CConsole::Cheated |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ ColorParse()
◆ Con_Chain()
◆ Con_Echo()
◆ Con_Exec()
◆ ConCommandAccess()
◆ ConCommandStatus()
◆ ConUserCommandStatus()
◆ DeregisterTemp()
◆ DeregisterTempAll()
| void CConsole::DeregisterTempAll |
( |
| ) |
|
|
overridevirtual |
◆ ExecuteFile()
◆ ExecuteLine()
◆ ExecuteLineFlag()
◆ ExecuteLineStroked()
◆ FindCommand()
◆ FirstCommandInfo()
◆ FlagMask()
| int CConsole::FlagMask |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetCommandInfo()
◆ Init()
◆ InitChecksum()
◆ LineIsValid()
◆ NextParam()
◆ ParseArgs()
◆ ParseArguments()
◆ ParseStart()
◆ PossibleCommands()
◆ Print()
- Deprecated:
- Prefer using the
log_* functions from base/log.h instead of this function for the following reasons:
- They support
printf-formatting without a separate buffer.
- They support all five log levels.
- They do not require a pointer to
IConsole to be used.
Implements IConsole.
◆ Register()
◆ RegisterTemp()
◆ SetAccessLevel()
| void CConsole::SetAccessLevel |
( |
int |
AccessLevel | ) |
|
|
overridevirtual |
◆ SetFlagMask()
| void CConsole::SetFlagMask |
( |
int |
FlagMask | ) |
|
|
inlineoverridevirtual |
◆ SetTeeHistorianCommandCallback()
◆ SetUnknownCommandCallback()
◆ StoreCommands()
| void CConsole::StoreCommands |
( |
bool |
Store | ) |
|
|
overridevirtual |
◆ TraverseChain()
◆ m_AccessLevel
| int CConsole::m_AccessLevel |
|
private |
◆ m_apStrokeStr
◆ m_Cheated
◆ m_FlagMask
◆ m_pFirstCommand
◆ m_pFirstExec
◆ m_pfnTeeHistorianCommandCallback
◆ m_pfnUnknownCommandCallback
◆ m_pRecycleList
◆ m_pStorage
◆ m_pTeeHistorianCommandUserdata
| void* CConsole::m_pTeeHistorianCommandUserdata |
|
private |
◆ m_pUnknownCommandUserdata
◆ m_StoreCommands
| bool CConsole::m_StoreCommands |
|
private |
◆ m_TempCommands
| CHeap CConsole::m_TempCommands |
|
private |
◆ m_vExecutionQueue
The documentation for this class was generated from the following files: