20 #ifndef __COMMANDMANAGER_H__ 21 #define __COMMANDMANAGER_H__ 25 #include <csutil/csstring.h> 26 #include <csutil/hash.h> 75 bool LoadFromDatabase();
76 bool GroupExists(
int securityLevel);
77 bool Validate(
int securityLevel,
const char* command);
78 bool Validate(
int securityLevel,
const char* command, csString &error);
79 void BuildXML(
int securityLevel, csString &dest,
bool subscribe =
true);
83 csHash<CommandGroup*, int> commandGroups;
84 csHash<CommandList*, csString> commandLists;
Defines a command listing.
unsigned int id
Unique ID code from database.
csString name
The name of the group from the database.
csArray< int > groupMembers
List of all groups the command is in.
csArray< csString > commands
List of all the commands in this group.
This class handles the permission system such as Game Masters and Role play masters.
csString command
The command string.