summaryrefslogtreecommitdiff
path: root/console.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-13 18:51:08 +0000
committertruelight <truelight@openttd.org>2004-12-13 18:51:08 +0000
commit76b76c28c399b99741d5c95e7bda2fcf4150c375 (patch)
tree2e19b108cb081e93e7bf2f40d9b5e992bf4c5b71 /console.h
parent025e96bb97938ed3159f45ac7e429c3267c537eb (diff)
downloadopenttd-76b76c28c399b99741d5c95e7bda2fcf4150c375.tar.xz
(svn r1065) -Add: [Console] Alias support. Type 'list_aliases' to show them all (sign_de)
Diffstat (limited to 'console.h')
-rw-r--r--console.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/console.h b/console.h
index c35b28e7f..6565032c5 100644
--- a/console.h
+++ b/console.h
@@ -76,10 +76,20 @@ typedef struct _iconsole_cmd {
void* _next;
} _iconsole_cmd;
+void IConsoleAliasRegister(const char* name, const char* cmdline);
+
+typedef struct _iconsole_alias {
+ // -------------- //
+ char * cmdline;
+ char* name;
+ void* _next;
+} _iconsole_alias;
+
// ** console parser ** //
_iconsole_cmd* _iconsole_cmds; // list of registred commands
_iconsole_var* _iconsole_vars; // list of registred vars
+_iconsole_alias* _iconsole_aliases; // list of registred aliases
// ** console colors ** //
VARDEF byte _iconsole_color_default;