Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ChatCommand Class Reference

#include <Chat.h>

Collaboration diagram for ChatCommand:

Public Member Functions

 ChatCommand (char const *name, uint32 permission, bool allowConsole, pHandler handler, std::string help, std::vector< ChatCommand > childCommands=std::vector< ChatCommand >())

Public Attributes

bool AllowConsole
std::vector< ChatCommandChildCommands
pHandler Handler
std::string Help
const char * Name
uint32 Permission

Private Types

typedef bool(* pHandler) (ChatHandler *, char const *)

Detailed Description

Definition at line 25 of file Chat.h.

Member Typedef Documentation

◆ pHandler

typedef bool(* ChatCommand::pHandler) (ChatHandler *, char const *)
private

Definition at line 27 of file Chat.h.

Constructor & Destructor Documentation

◆ ChatCommand()

ChatCommand::ChatCommand ( char const * name,
uint32 permission,
bool allowConsole,
pHandler handler,
std::string help,
std::vector< ChatCommand > childCommands = std::vector<ChatCommand>() )
inline

Definition at line 30 of file Chat.h.

References AllowConsole, ChildCommands, Handler, Help, Name, and Permission.

Member Data Documentation

◆ AllowConsole

bool ChatCommand::AllowConsole

Definition at line 34 of file Chat.h.

Referenced by ChatCommand(), and CliHandler::isAvailable().

◆ ChildCommands

std::vector<ChatCommand> ChatCommand::ChildCommands

Definition at line 37 of file Chat.h.

Referenced by ChatCommand().

◆ Handler

pHandler ChatCommand::Handler

Definition at line 35 of file Chat.h.

Referenced by ChatCommand().

◆ Help

std::string ChatCommand::Help

Definition at line 36 of file Chat.h.

Referenced by ChatCommand().

◆ Name

const char* ChatCommand::Name

Definition at line 32 of file Chat.h.

Referenced by ChatCommand().

◆ Permission

uint32 ChatCommand::Permission

Definition at line 33 of file Chat.h.

Referenced by ChatCommand(), and ChatHandler::isAvailable().


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