summaryrefslogtreecommitdiff
path: root/src/map/charcommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/charcommand.h')
-rw-r--r--src/map/charcommand.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/charcommand.h b/src/map/charcommand.h
index 741d5eb9e..a081000d8 100644
--- a/src/map/charcommand.h
+++ b/src/map/charcommand.h
@@ -34,8 +34,6 @@ enum CharCommandType {
CharCommandChangeSex,
CharCommandFeelReset, // Komurka
CharCommandHelp,
-
-
#ifdef TXT_ONLY
/* TXT_ONLY */
@@ -53,7 +51,13 @@ enum CharCommandType {
};
typedef enum CharCommandType CharCommandType;
-typedef struct AtCommandInfo CharCommandInfo;
+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);