TrinityCore
Loading...
Searching...
No Matches
server_commandscript Class Reference
+ Inheritance diagram for server_commandscript:

Public Member Functions

 server_commandscript ()
 
std::span< ChatCommandBuilder const > GetCommands () const override
 
- Public Member Functions inherited from CommandScript
 ~CommandScript ()
 
- Public Member Functions inherited from ScriptObject
 ScriptObject (ScriptObject const &right)=delete
 
 ScriptObject (ScriptObject &&right)=delete
 
ScriptObjectoperator= (ScriptObject const &right)=delete
 
ScriptObjectoperator= (ScriptObject &&right)=delete
 
std::string const & GetName () const
 

Static Public Member Functions

static bool HandleServerCorpsesCommand (ChatHandler *, char const *)
 
static bool HandleServerDebugCommand (ChatHandler *handler, char const *)
 
static bool HandleServerInfoCommand (ChatHandler *handler, char const *)
 
static bool HandleServerMotdCommand (ChatHandler *handler, char const *)
 
static bool HandleServerPLimitCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerShutDownCancelCommand (ChatHandler *handler, char const *)
 
static bool IsOnlyUser (WorldSession *mySession)
 
static bool HandleServerShutDownCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerRestartCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerForceShutDownCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerForceRestartCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerIdleShutDownCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerIdleRestartCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerExitCommand (ChatHandler *handler, char const *)
 
static bool HandleServerSetMotdCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerSetClosedCommand (ChatHandler *handler, char const *args)
 
static bool HandleServerSetLogLevelCommand (ChatHandler *, std::string const &type, std::string const &name, int32 level)
 

Static Private Member Functions

static bool ParseExitCode (char const *exitCodeStr, int32 &exitCode)
 
static bool ShutdownServer (ChatHandler *handler, char const *args, uint32 shutdownMask, int32 defaultExitCode)
 

Additional Inherited Members

- Protected Member Functions inherited from CommandScript
 CommandScript (char const *name) noexcept
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (char const *name) noexcept
 
virtual ~ScriptObject ()
 

Detailed Description

Definition at line 56 of file cs_server.cpp.

Constructor & Destructor Documentation

◆ server_commandscript()

server_commandscript::server_commandscript ( )
inline

Definition at line 59 of file cs_server.cpp.

Member Function Documentation

◆ GetCommands()

std::span< ChatCommandBuilder const > server_commandscript::GetCommands ( ) const
inlineoverridevirtual

Implements CommandScript.

Definition at line 61 of file cs_server.cpp.

+ Here is the call graph for this function:

◆ HandleServerCorpsesCommand()

static bool server_commandscript::HandleServerCorpsesCommand ( ChatHandler ,
char const *   
)
inlinestatic

Definition at line 119 of file cs_server.cpp.

+ Here is the caller graph for this function:

◆ HandleServerDebugCommand()

static bool server_commandscript::HandleServerDebugCommand ( ChatHandler handler,
char const *   
)
inlinestatic

Definition at line 125 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerExitCommand()

static bool server_commandscript::HandleServerExitCommand ( ChatHandler handler,
char const *   
)
inlinestatic

Definition at line 395 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerForceRestartCommand()

static bool server_commandscript::HandleServerForceRestartCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 379 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerForceShutDownCommand()

static bool server_commandscript::HandleServerForceShutDownCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 374 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerIdleRestartCommand()

static bool server_commandscript::HandleServerIdleRestartCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 389 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerIdleShutDownCommand()

static bool server_commandscript::HandleServerIdleShutDownCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 384 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerInfoCommand()

static bool server_commandscript::HandleServerInfoCommand ( ChatHandler handler,
char const *   
)
inlinestatic

Definition at line 255 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerMotdCommand()

static bool server_commandscript::HandleServerMotdCommand ( ChatHandler handler,
char const *   
)
inlinestatic

Definition at line 278 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerPLimitCommand()

static bool server_commandscript::HandleServerPLimitCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 287 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerRestartCommand()

static bool server_commandscript::HandleServerRestartCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 369 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerSetClosedCommand()

static bool server_commandscript::HandleServerSetClosedCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 411 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerSetLogLevelCommand()

static bool server_commandscript::HandleServerSetLogLevelCommand ( ChatHandler ,
std::string const &  type,
std::string const &  name,
int32  level 
)
inlinestatic

Definition at line 432 of file cs_server.cpp.

+ Here is the caller graph for this function:

◆ HandleServerSetMotdCommand()

static bool server_commandscript::HandleServerSetMotdCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 403 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerShutDownCancelCommand()

static bool server_commandscript::HandleServerShutDownCancelCommand ( ChatHandler handler,
char const *   
)
inlinestatic

Definition at line 346 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleServerShutDownCommand()

static bool server_commandscript::HandleServerShutDownCommand ( ChatHandler handler,
char const *  args 
)
inlinestatic

Definition at line 364 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsOnlyUser()

static bool server_commandscript::IsOnlyUser ( WorldSession mySession)
inlinestatic

Definition at line 354 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ParseExitCode()

static bool server_commandscript::ParseExitCode ( char const *  exitCodeStr,
int32 exitCode 
)
inlinestaticprivate

Definition at line 442 of file cs_server.cpp.

+ Here is the caller graph for this function:

◆ ShutdownServer()

static bool server_commandscript::ShutdownServer ( ChatHandler handler,
char const *  args,
uint32  shutdownMask,
int32  defaultExitCode 
)
inlinestaticprivate

Definition at line 459 of file cs_server.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: