summaryrefslogtreecommitdiff
path: root/src/map/charcommand.h
diff options
context:
space:
mode:
authormc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-21 13:08:44 +0000
committermc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-21 13:08:44 +0000
commit1170b595e25fbd5abe031dfccd0fba160296b8dd (patch)
treebbd9e76ad5f4e214b9282cfc7cd3bd46f08a16f8 /src/map/charcommand.h
parent6b31a90c7f324c1db31da4ccf119abd70c526249 (diff)
downloadhercules-1170b595e25fbd5abe031dfccd0fba160296b8dd.tar.gz
hercules-1170b595e25fbd5abe031dfccd0fba160296b8dd.tar.bz2
hercules-1170b595e25fbd5abe031dfccd0fba160296b8dd.tar.xz
hercules-1170b595e25fbd5abe031dfccd0fba160296b8dd.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@290 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/charcommand.h')
-rw-r--r--src/map/charcommand.h42
1 files changed, 42 insertions, 0 deletions
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
+