From 1170b595e25fbd5abe031dfccd0fba160296b8dd Mon Sep 17 00:00:00 2001 From: mc_cameri Date: Sun, 21 Nov 2004 13:08:44 +0000 Subject: git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@290 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/charcommand.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/map/charcommand.h (limited to 'src/map/charcommand.h') diff --git a/src/map/charcommand.h b/src/map/charcommand.h new file mode 100644 index 000000000..95ca8aae6 --- /dev/null +++ b/src/map/charcommand.h @@ -0,0 +1,42 @@ +#ifndef _CHARCOMMAND_H_ +#define _CHARCOMMAND_H_ + +enum CharCommandType { + CharCommand_None = -1, + +#ifdef TXT_ONLY +/* TXT_ONLY */ + CharCommandTest, +/* TXT_ONLY */ +#else +/* SQL-only */ + +/* SQL Only */ +#endif + + // End. No more commans after this line. + CharCommand_Unknown, + CharCommand_MAX +}; + +typedef enum CharCommandType CharCommandType; + +typedef struct CharCommandInfo { + CharCommandType type; + const char* command; + int level; + int (*proc)(const int, struct map_session_data*, + const char* command, const char* message); +} CharCommandInfo; + +CharCommandType +is_charcommand(const int fd, struct map_session_data* sd, const char* message, int gmlvl); + +CharCommandType charcommand( + const int level, const char* message, CharCommandInfo* info); +int get_charcommand_level(const CharCommandType type); + +int charcommand_config_read(const char *cfgName); + +#endif + -- cgit v1.2.3-70-g09d2