32 #ifndef _INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_
33 #define _INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_
43 #define SMINTERFACE_ROOTCONSOLE_NAME "IRootConsole"
44 #define SMINTERFACE_ROOTCONSOLE_VERSION 2
62 virtual const char *
Arg(
int n)
const = 0;
69 virtual int ArgC()
const = 0;
76 virtual const char *
ArgS()
const = 0;
85 virtual void OnRootConsoleCommand(
const char *cmdname,
const CCommand &command)
89 virtual void OnRootConsoleCommand2(
const char *cmdname,
const ICommandArgs *args)
154 #endif //_INCLUDE_SOURCEMOD_ROOT_CONSOLE_MENU_H_
virtual bool AddRootConsoleCommand2(const char *cmd, const char *text, IRootConsoleCommand *pHandler)=0
Adds a root console command handler. The command must be unique.
Manages the root console menu - the "sm" command for servers.
Definition: IRootConsoleMenu.h:97
virtual void DrawGenericOption(const char *cmd, const char *text)=0
Draws a generic command/description pair. NOTE: The pair is currently four spaces indented and 16-N s...
Handles a root console menu action.
Definition: IRootConsoleMenu.h:82
virtual const char * ArgS() const =0
Returns the full argument string.
virtual bool AddRootConsoleCommand(const char *cmd, const char *text, IRootConsoleCommand *pHandler)=0
Adds a root console command handler. The command must be unique.
Wrapper around CCommand.
Definition: IRootConsoleMenu.h:53
Defines the base functionality required by a shared interface.
Definition: IShareSys.h:92
virtual void ConsolePrint(const char *fmt,...)=0
Prints text back to the console.
Definition: IAdminSystem.h:63
virtual int ArgC() const =0
Returns the argument count.
virtual bool RemoveRootConsoleCommand(const char *cmd, IRootConsoleCommand *pHandler)=0
Removes a root console command handler.
virtual const char * Arg(int n) const =0
Returns an argument by number.